← projects

UDP Hole Puncher

UDP hole puncher.

source ↗

In this project I wanted to bypass NAT (Network Address Translation) limitations. Because of lack of IPv4 addresses and security reasons we have public and private addresses. In this situation, we can't easily create a peer-to-peer connection unfortunately. Thanks to UDP hole punching strategy, we may bypass NAT restrictions. I can't say it works every time because NAT strategies are getting complex by different layers and even creating a hole in your router is not enough for peer connection.

Why I did this?

I wanted to create a peer-to-peer connection without sending actual data to some relay server. UDP hole punching still relies on at least a connectable address (let's say a relay) but just for creating a hole, not for sending all data.

What I learned?

I learned more details and different types of NATs. Working with UDP is also another plus.