I want to connect to a URL with the socket method (http://msdn.microsoft.com/en-us/library/system.net.sockets.socket(v=VS.96).aspx);
But I don’t connect.
I always get an Error : HostNotFound, but, I try with “google.com”, for Url, and port “80”.
I have tried with lots of Urls, (http://google.com, http://www.google.com, http://www.google.fr) and I don’t connect.
I’ve seen lot of web tutorials and I notice they are not DNS Resolve in MSDN Tutorial, is there a problem?
Any ideas?
You are supposed to set the SocketAsyncEventArgs.RemoteEndPoint to an instance of DnsEndPoint; is this what you are currently doing?
You can check here for a sample!