I made a little program that connects asynchronously to a host to check if it´s port is open or not:
socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Dim result As IAsyncResult = socket.BeginConnect(IpAddress, port, Nothing, Nothing)
Dim isConnected As Boolean = result.AsyncWaitHandle.WaitOne(1000, True)
It works just fine, but then this 1 person told me that he never seemed to get an offline notification when the server it´s off.
I sent him a simple test program using the code above that connects to an inexistent host (126.96.36.199), and sure enough, he got an "On" message.
He says his network works ok. He can play online, navigate webs and so on with no problems at all. I´m out of ideas.
Am I doing something wrong in the code? Or is there some explanation to his network behaviour?
Thanks in advance.
View Complete Post