[erlang-questions] Finding IP addresses in a PC

Dale Harvey harveyd@REDACTED
Tue Oct 3 18:14:36 CEST 2006


1> {ok, L} = inet:getiflist().
{ok,["671.832.891.751","100.0.0.721"]}
2> [lists:reverse(I) || I <- L].
["157.198.238.176","127.0.0.001"]

this isnt my code, i just recognised the question from another mailing list
thread
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061003/2bc2712d/attachment.htm>


More information about the erlang-questions mailing list