[erlang-questions] how to get the factual ip address?

Zvi exta7@REDACTED
Wed Oct 29 13:27:53 CET 2008


Below is what they return on Windows. I guess there is a reason, these
functions are undocumented :-)

Zvi

Erlang (BEAM) emulator version 5.6.4 [smp:2] [async-threads:0]

Eshell V5.6.4  (abort with ^G)

1> inet:getif().
{ok,[{{127,0,0,1},undefined,{255,0,0,0}},
     {{20,207,16,76},undefined,{255,255,255,0}}]}
2> inet:getiflist().
{ok,["20.207.16.76","127.0.0.1"]}




-- 
View this message in context: http://www.nabble.com/how-to-get-the-factual-ip-address--tp20170429p20226001.html
Sent from the Erlang Questions mailing list archive at Nabble.com.




More information about the erlang-questions mailing list