This may be a Mono issue, but I'll start here first.  As I understand it, if
I call Dns.getHostEntry(string.Empty), I should get a list of all IPv4
addresses of the local host
(http://msdn.microsoft.com/en-us/library/ms143998(v=vs.80).aspx).

What I actually get is a SocketException (Code=11001, HostNotFound, "No such
host is known").  I get this whether connected or not, wifi, wwan, airplane
mode.

Am I doing something wrong here?  I see a similar discussion here
(http://monotouch.2284126.n4.nabble.com/Checking-local-network-availability-tp4655233p4655264.html),
but he didn't seem to have any problems.

I'm doing this because the Reachability code on MT doesn't work reliably for
me, and this seems like a straightforward substitution for it.



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Dns-GetHostEntry-in-MonoTouch-tp4656219.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to