views:

154

answers:

1

Hi all,

I am creating an application in C#, It should send data with UDP.

Everything works fine until, I try to communicate with a PC that is on the internet behind a router.

How do I fix this so that I can use UDP without port forwarding?

+2  A: 

I think your best hope is UDP hole punching.

My understanding of it is that each host sends data to the other. This tricks the firewall/NAT into thinking the connection had already been established.

Foole
Hi, i read about this "UDP hole punching", but i didn't found any examples of it in c#. can you show some of it?
igor
No, I'm not aware of any. I think this is because each implementation is unique.
Foole