A socket operation was attempted for an inaccessible host

One client reported this error on my WCF client by connecting to our server service.

"Message: A socket operation was attempted for an inaccessible host Type: System.Net.Sockets.SocketException"

With this link http://msdn.microsoft.com/en-us/library/ms740668%28v=vs.85%29.aspx I see:

WSAEHOSTUNREACH 10065 There is no route to host. A socket operation was attempted for an inaccessible host. See WSAENETUNREACH.

WSAENETUNREACH 10051 Network is unavailable. A socket operation was attempted for an inaccessible network. This usually means that local software does not know the path to reach the remote host.

Is this a network error in a client network? Is this what we can advise the client to do?

The WCF client managed to connect to the server service earlier, and it seems that this problem disappeared after the computer rebooted (or perhaps the network problem was fixed in the meantime).

thanks

Adriana

+4
source share
2 answers

This error indicates that the network has not been connected or is configured incorrectly. This is definitely a bug on the client machine, not on your server.

There is not much to “solve” the problem. Almost all you can do is update the client network drivers and check for connection problems (perhaps they are hardly in the wireless range, or the lock tab is missing on the Ethernet cable).

+1
source

You can help your customers or the FAE develop an SOP to identify connectivity issues. Let's say the pinging IP address of the server from the client computer, do ipconfig and see if the network adapter is turned on or not.

0
source

Source: https://habr.com/ru/post/1341938/


All Articles