comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: get localhost ip address
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: get localhost ip address [message #78606 is a reply to message #78605] Tue, 06 December 2011 14:28 Go to previous message
Brian Wolven is currently offline  Brian Wolven
Messages: 94
Registered: May 2011
Member
Public/WAN or private/LAN? What OS? On unix or mac, you can spawn the following:

curl whatismyip.org

On OS X the following works to give your LAN IP, I'm not sure if this works on other unix-based systems:

ifconfig | grep broadcast | awk "{print \$2}"
[Message index]
 
Read Message
Read Message
Previous Topic: get localhost ip address
Next Topic: Constructing integer variables from two bytes?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:28:59 PDT 2025

Total time taken to generate the page: 1.76070 seconds