How do I find my own IP address?

Joe Armstrong joe@REDACTED
Wed Jan 21 15:41:48 CET 2004

I need to know my own IP address

I can find my hostname

1> inet:gethostname().

And do this

2> inet:gethostbyname("enfield").

But is not my IP address

The undocumented function inet:getif()

4> inet:getif().

The first element of this list appears to be my IP address - 
can I reply on this????


More information about the erlang-questions mailing list