X-Spam-Check-By: sourceware.org Message-ID: <022d01c61131$27340c70$0200000a@agamemnon> From: "Jon A. Lambert" To: References: Subject: Re: Utility to get IP address of the machine Date: Wed, 4 Jan 2006 08:17:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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/