[Mono-devel-list] Problems with Dns.GetHostByName
MP3 Bunker
elcrow at gmail.com
Sat Jul 31 17:23:05 EDT 2004
i have this code:
IPHostEntry host = Dns.GetHostByName(Dns.GetHostName());
Console.WriteLine(host.AddressList[0].ToString());
Console.WriteLine(host.AddressList[1].ToString());
but it shows me two times 127.0.0.1, i have two network cards, and one
has a valid address, 192.168.2.50, but i get that, anyone knows why?
im using slackware 10, mono 1.0.
Thanks in advance
More information about the Mono-devel-list
mailing list