HirbodBehnam / p2p_udp_puncher

Connect two peers behind NAT together using UDP hole punching
MIT License
3 stars 0 forks source link

Ovpn #1

Open freecode505 opened 10 months ago

freecode505 commented 10 months ago

Does it work with vpn? How did you build this binary?

HirbodBehnam commented 10 months ago

Hi It should work with any program which does use UDP protocol however VPN's need extra care to whitelist not only the STUN server, but also the peer which is behind the NAT. The peer is the hard part because you don't really know what is the IP address of it until you contact the STUN server. So theoretically, yes it is possible. Practically? Very hard. Unless you edit the source code and get the IP address of the peer before connecting the VPN and whitelisting it. And to compile the binary you can just use this command:

cargo build --release
freecode505 commented 4 months ago

I can't build it for windows or android

@HirbodBehnam

HirbodBehnam commented 4 months ago

What's the error?

freecode505 commented 4 months ago

Screenshot_2024-06-03-06-45-13-844_com termux

This appears, but I wanted to compile in Linux for Android, but I couldn't.