Click here to Skip to main content
15,881,413 members
Home / Discussions / C#
   

C#

 
QuestionDisplaying MessageBox from a Console application Pin
Rajdeep.NET is BACK12-Apr-09 0:17
Rajdeep.NET is BACK12-Apr-09 0:17 
AnswerRe: Displaying MessageBox from a Console application Pin
Eddy Vluggen12-Apr-09 0:30
professionalEddy Vluggen12-Apr-09 0:30 
QuestionLast modified time in file. Pin
Karmendra Suthar11-Apr-09 23:27
Karmendra Suthar11-Apr-09 23:27 
AnswerRe: Last modified time in file. Pin
Karmendra Suthar11-Apr-09 23:28
Karmendra Suthar11-Apr-09 23:28 
GeneralRe: Last modified time in file. Pin
PIEBALDconsult12-Apr-09 4:23
mvePIEBALDconsult12-Apr-09 4:23 
GeneralRe: Last modified time in file. Pin
Karmendra Suthar12-Apr-09 7:01
Karmendra Suthar12-Apr-09 7:01 
GeneralRe: Last modified time in file. Pin
PIEBALDconsult12-Apr-09 7:20
mvePIEBALDconsult12-Apr-09 7:20 
QuestionNAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching PinPopular
softwarejaeger11-Apr-09 22:41
softwarejaeger11-Apr-09 22:41 
Hello,

in the last few weeks i've read a lot about NAT Traversal and i searched after Tutorials and so on (i think i've read almost all what's there to read). On most webpages i've read about STUN, a protocol, which should help me to connect to another client behind a NAT-Router or a firewall. Now my question... if i understand STUN, STUN is ONLY there to give me the public IP-Address and the characterization of my NAT (Full Cone, OpenInternet and so on) here on CodeProject is a great tutorial for it. But so HOW can i connect with this informations to another client? Well OK, i have a server and there i save my informations about the peers (ID, STUN-Informations, favorite Port for UDP Connections) and if i have a OpenINternet-Client (directly plugged in to the internet, no router, no firewall) everything is really easy, because each listens on the specific favorite port.

But what's if my clients are behind a NAT, which gives a counting port number (for example, UDP connection to STUN-Server on Port 45001, to the Server 45002 and to the peers maybe 45003-60000). How can i find out on which port i can reach my peer? I know theres a technique called UDP Hole Punching, there both peers build up a connection to each other, but the Ports are my problem! Has somebody any idea, how to find out the ports of the peers? The peer2 must know on which port peer1 is connected and peer1 must know from which port peer2 wants to connect. Thats really tricky and i doesn't come further on this. I develope since a few days on it and yes, the server works, i can exchange all communication-information i want, but the connection between the peers itself, there i found no way to connect Dead | X|

Kind regards, i hope somebody has THE idea in this or has experience in this Traversal technologies.
AnswerRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot12-Apr-09 7:46
harold aptroot12-Apr-09 7:46 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger12-Apr-09 22:20
softwarejaeger12-Apr-09 22:20 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot13-Apr-09 2:16
harold aptroot13-Apr-09 2:16 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger13-Apr-09 22:20
softwarejaeger13-Apr-09 22:20 
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 
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 

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.