H
Hilton
Hi,
I have a customer reporting that:
IPHostEntry hostEntry = Dns.GetHostByName (Dns.GetHostName ());
result = hostEntry.AddressList [0].ToString ();
only gives 127.0.0.1 and it is the only addr in the list. However, the same
EXE manages to download a file from a web site with no problem (his PDA's IE
works fine too). So, my questions are:
1. Even though the PDA is connected, why is he (only) getting 127.0.0.1,
2. If he is (only) getting 127.0.0.1, how can the download work, and
lastly.
3. By using the code above and checking for 127.0.0.1, I thought that was
the correct way to check for connectivity, clearly it isn't. Is there
another way that works 100%?
Two interfaces? One reports 127.0.0.1, other one doesn't?
Thanks,
Hilton
I have a customer reporting that:
IPHostEntry hostEntry = Dns.GetHostByName (Dns.GetHostName ());
result = hostEntry.AddressList [0].ToString ();
only gives 127.0.0.1 and it is the only addr in the list. However, the same
EXE manages to download a file from a web site with no problem (his PDA's IE
works fine too). So, my questions are:
1. Even though the PDA is connected, why is he (only) getting 127.0.0.1,
2. If he is (only) getting 127.0.0.1, how can the download work, and
lastly.
3. By using the code above and checking for 127.0.0.1, I thought that was
the correct way to check for connectivity, clearly it isn't. Is there
another way that works 100%?
Two interfaces? One reports 127.0.0.1, other one doesn't?
Thanks,
Hilton