delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/04/08:17:54

X-Spam-Check-By: sourceware.org
Message-ID: <022d01c61131$27340c70$0200000a@agamemnon>
From: "Jon A. Lambert" <jlsysinc AT alltel DOT net>
To: <cygwin AT cygwin DOT com>
References: <dpegfs$qeg$1 AT sea DOT gmane DOT org>
Subject: Re: Utility to get IP address of the machine
Date: Wed, 4 Jan 2006 08:17:03 -0500
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Alex Vinokur wrote:
> What is Cygwin utility to get IP address of the machine?
>

Here's another way to get the IP of your machine, from outside your network.

ruby -ropen-uri -e "URI.parse('http://www.whatismyip.com').read =~ 
/((\d+\.?){4})/; puts $&"

--
J Lambert



--
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/

- Raw text -


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