[erlang-questions] Finding IP addresses in a PC

Tim Rath rath64@REDACTED
Tue Sep 19 00:44:44 CEST 2006


Someone else noticed this behavior on a windows machine during a similar thread discussion a while back:

http://www.erlang.org/ml-archive/erlang-questions/200401/msg00264.html


>That's not an endian issue, that's a backwards string. How about
showing us what expression you actually evaluated? inet:getiflist()
returns interface names, and inet:getif() returns address tuples;
neither of them could've possibly produced that output...

-bob

On 9/18/06, Surindar Sivanesan <surindar.shanthi@REDACTED> wrote:
> Hi
> Thanks for your timely help.
> I'm able to get the IP addresses using inet:getiflist() but those IP address
> is reversed.
> Ex: 192.168.1.60 is displayed as 60.100.861.291.
> Is there any option to get the IP as such.
> This is just for info
>
> Thanks once again
>
> Best regards,
> S.Surindar.




More information about the erlang-questions mailing list