Re: How do I get my own IP address?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu