Re: How do I get my own IP address?
- Posted by ghaberek (admin) Sep 21, 2009
- 2375 views
This might work for you:
include std/pretty.e include std/net/dns.e constant COMPUTERNAME = getenv("COMPUTERNAME") pretty_print( 1, host_by_name(COMPUTERNAME), {2} )
{ "example-computer", "", { "192.168.1.90" }, 2 }
-Greg