Winsock error 40006 when sending data
Posted on 2005-03-14
i've got a vb application that does chat. however when sending a message out from a remote client to remote client I get the error 40006.
when i chat from client running on the server PC to my remote client i can talk no worries, but when its me and another remote client talking together we get that error. we have both disabled our firewalls and forwarded the relevant port (even tried port forwarding all ports), but the same problem still occurs.
I noticed when debugging on my local client, the client thinks my friends client ip is 192.168.x.x. which is of course a local IP. But I cant figure out why that is....
heres the code in question, which is executed on the client after user types in message and clicks Send button.
If (remote_window_closed = False) Then
tx = mainform.Text1.Text & " : " & typeTxt.Text
typeTxt.Text = ""