Simple UDP hole punching example with signaling server
Find a file
2025-09-21 22:54:51 +02:00
.gitignore Initial commit 2025-09-21 20:47:12 +00:00
client.py Initial commit 2025-09-21 22:54:51 +02:00
README.md Initial commit 2025-09-21 22:54:51 +02:00
server.py Initial commit 2025-09-21 22:54:51 +02:00

UDP hole punching example

Simple UDP hole punching example with signaling server

How to run

Server:

python server.py --host 0.0.0.0 --port 12345

Clients:

# Client A
python client.py --id A --peer B --udp-port 50000 --server-host <SERVER IP> --server-port 12345

# Client B
python client.py --id B --peer A --udp-port 50001 --server-host <SERVER IP> --server-port 12345