|
-
August 17th, 2010, 01:37 PM
#1
UDP hole punching P2p
I am working UDP hole punching to have communication between two client inC# without WCF.
presenlty both my client are behind same NAT i.e in my company's network.
I am able to get public IP of both the client by requesting to the STUN server.
there is a server app which will act as relaying server.this server provide the
client about other clients Public IP and port.
suppose
Client A private IP 192.168.1.192 port 4005 public IP 123.45.67.1 port 45667
Client B private IP 192.168.1.100 port 7005 public IP 143.45.67.1 port 35667
now the question is how to start connection between these two client
1. shall I create a server socket in ClientA which will listen to port 4005
and in Client B at port 7005 so that each can recive message at 4005 and 7005
respectively.
so when ClientB send some data to ClientB at public IP 123.45.67.1 port 45667
it will arrive at 4005 port at clientA and vice varsa.
please confirm my understanding.if it is wrong way to do this then pease
suggest correct way to implement UDP hole punching.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|