Hi,
I made a server app and a client app from the post in Atheist's signature (TCP client/server connection ).
Then I tried to run both on my machine, as a self test.
However the results were not as expected.
The server runs fine.
The client runs fine when I put IP Address 127.0.0.1, but errors out when I put my actual internet IP address.
VB.NET Code:
Private client As System.Net.Sockets.TcpClient Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click client = New System.Net.Sockets.TcpClient("122.162.75.237", 43001) '<-- Error: SocketException - No connection could be made because the target machine actively refused it 122.162.75.237:43001 client.GetStream.BeginRead(readBuffer, 0, BYTES_TO_READ, AddressOf doRead, Nothing) End Sub
The IP address I put there is what I can see myself from many sites like www.whatismyip.com etc.
I also tried a ping on that address and it returns fine.
What could be the reason?
Pradeep




icon on the left of the post.
Reply With Quote