delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/04/06:56:15

X-Spam-Check-By: sourceware.org
Date: Wed, 4 Jan 2006 12:56:04 +0100 (CET)
Message-ID: <14935490.1136375764369.JavaMail.adm-moff@moffice11.nsc.no>
From: "Peter J. Acklam" <pjacklam AT online DOT no>
To: <cygwin AT cygwin DOT com>
Subject: Re: Utility to get IP address of the machine
Cc: <pjacklam AT online DOT no>
In-Reply-To: <EISJ6A8-000558-80@mail2.learnquick.com>
Mime-Version: 1.0
References: <SERRANORf3sllNY30kk000001cb AT SERRANO DOT CAM DOT ARTIMI DOT COM> <EISJ6A8-000558-80 AT mail2 DOT learnquick DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

------=_Part_10592_16785092.1136375763344
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Herb Martin wrote:

> While it is almost always more useful to use "Ipconfig
> /all" when working interactively, when one just wants the
> IP addresses just using plain "ipconfig" gets them without
> so much noise to parse through.

Or

   perl -MSocket -MSys::Hostname -wle \
      'print inet_ntoa(scalar gethostbyname(hostname || "localhost"))'

Peter


------=_Part_10592_16785092.1136375763344
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_Part_10592_16785092.1136375763344--


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019