In specific (repeatable) cases the client fails to connect to the server
running on the same machine. The client receives the
System.Net.Sockets.SocketException: "A socket operation was attempted to an
unreachable host" although the server is still running and listening on the
right port (45326 my case).
This happens when LAN (or internet) connection is present upon starting the
server and then desactivated (cable is removed). After LAN is no accessible,
the client cannot connect to the server anymore (note that they are on the
same machine!). When the cable is reinserted, the connection works again!
On the other side if server is started when LAN is not present, it will work
no matter what.
I put more details here:
http://www.david13.com/cases/DotNet/Remoting-BUG-Server-Inaccessible-From-Local-Machine/
I would kindly ask you to check it and help me with advice so we can confirm
a bug or find a solution together. Thank you very much!
David Krmpotic
http://www.david13.com