Click here to Skip to main content
16,014,650 members

Comments by Bobby-CA (Top 2 by date)

Bobby-CA 2-Feb-11 7:06am View    
Ok, i have created a new post for this and here is the link http://www.codeproject.com/Questions/153004/Socket-Binding-Over-Internet-IP.aspx
Bobby-CA 2-Feb-11 1:52am View    
This is a very difficult question, actually original poster was unable to describe it properly. I am also facing the same situation.

Here I am describing the problem in simple terms.

Imagine 2 users connected to Yahoo messenger or GTalk etc. Both the users are under the same LAN (i.e., same router), hence their Internet IP's are same but LAN IP's are different.

The question of Router configuration etc. will not arise at all. Because the persons under the same LAN are communicating with each other, without even bothering what their IP is and they are also communicating with another person in Montreal (i.e., out of the LAN).

The Socket Server is always running in the background, but the communication is entirely P2P.

The Problem: If a message sent from A in Montreal to B in Japan (C is also in Japan and in the same LAN as B). Now, the message from A destined for B will also be broadcast to C. Because the sockets are binded to an IP and Port. Since B & C have the same Internet IP, the sender message cannot resolve to the actual end point (i.e., the actual recipient of the message).

I hope this makes more sense.

Also, the confusion mentioned about "TcpClient tcp_Server" should actually be "TcpClient tcp_Client". SO, whatever, the problem still remains the same.