Tuesday 2 February 2016

[Solved] Cannot connect System.Net.Sockets.SocketException (0x80004005)

The requested name is valid, but no data of the requested type was found.

I was sending sms through whatsapp api and i got.

could not connect = WhatsAppApi.Helper.ConnectionException: Cannot connect System.Net.Sockets.SocketException (0x80004005): The requested name is valid, but no data of the requested type was found at System.Net.Dns.GetAddrInfo(String name) at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostAddresses(String hostNameOrAddress) at System.Net.Sockets.Socket.Connect(String host, Int32 port) at WhatsAppApi.WhatsNetwork.Connect() at WhatsAppApi.WhatsNetwork.Connect() at WhatsAppApi.WhatsAppBase.Connect()


I got this problem but i solved by this way.
So simple bro, Check You have proper internet connection are there on your machine or not.
I checked my IPV4 authentication settings like IP, DNS.
And it worked for me.