Click here to Skip to main content
15,906,285 members
Home / Discussions / C#
   

C#

 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 1:43
harold aptroot14-Apr-09 1:43 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 2:18
softwarejaeger14-Apr-09 2:18 
Exactly, but how do i know from which port a data package from the other side will come? For example:

Step 1: Client 1 sends a UDP Package to the Server (IP: 1.1.1.1:1000)
Step 2: Client 2 sends a UDP Package to the Server (IP: 2.2.2.2:2000)
Step 3: Client 1 and Client 2 gets the UDP Informations from each other from the server
Step 4: Client 1 (LAN: 192.168.1.1:61000, WAN:1.1.1.1:1001)sends a UDP Package to Client 2 (2.2.2.2:2000) (!! Couldn't work! Port 2000 is reserved for the server-address and port)
Step 5: Client 2 (LAN: 192.168.1.2:62000, WAN:2.2.2.2:2001) sends a UDP Package to Client 1 (1.1.1.1:1000) (!! Same problem like in Step 4)

So... here you see the problem. I must find out from which port the Client 1 WILL send his data the same for Client 2. And there i found no solution.
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 2:37
harold aptroot14-Apr-09 2:37 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 3:07
softwarejaeger14-Apr-09 3:07 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 3:18
harold aptroot14-Apr-09 3:18 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 3:23
softwarejaeger14-Apr-09 3:23 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 3:34
harold aptroot14-Apr-09 3:34 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 3:37
softwarejaeger14-Apr-09 3:37 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 3:56
harold aptroot14-Apr-09 3:56 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 4:00
softwarejaeger14-Apr-09 4:00 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 5:18
harold aptroot14-Apr-09 5:18 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 5:21
softwarejaeger14-Apr-09 5:21 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 5:33
harold aptroot14-Apr-09 5:33 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 5:40
softwarejaeger14-Apr-09 5:40 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 5:51
harold aptroot14-Apr-09 5:51 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 5:55
softwarejaeger14-Apr-09 5:55 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 6:21
harold aptroot14-Apr-09 6:21 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 6:34
softwarejaeger14-Apr-09 6:34 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 7:02
harold aptroot14-Apr-09 7:02 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger19-Apr-09 0:20
softwarejaeger19-Apr-09 0:20 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot19-Apr-09 0:55
harold aptroot19-Apr-09 0:55 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
lok.vikram30-Aug-10 20:01
lok.vikram30-Aug-10 20:01 
QuestionToolstrip Button Pin
nagendra.vk11-Apr-09 21:00
nagendra.vk11-Apr-09 21:00 
AnswerRe: Toolstrip Button Pin
Henry Minute12-Apr-09 1:33
Henry Minute12-Apr-09 1:33 
GeneralRegex Cheat-Sheet YAAAAAAY!!! :-D Pin
jas0n2311-Apr-09 20:35
jas0n2311-Apr-09 20:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.