laike9m / PyPunchP2P

Python实现NAT穿透+STUN+TURN+P2P聊天 | Python P2P chat
MIT License
428 stars 168 forks source link

"Always : "UDP punching package xx sent " #10

Open bilouw opened 5 years ago

bilouw commented 5 years ago

Hello!

I try to make a connection with UDP Hole punching. I tried differents python script before yours (more simple : https://github.com/stylesuxx/udp-hole-punching). Every time, it fails when the two peers are linked then try to communicate. I begin to think that the problem come from my network. I try from : 2 computer behind the same NAT, Same computer behind same NAT, 1 computer on 4G connection and 1 computer behind home NAT. Every time it fail. The Server is running on a VPS with public static address, so this part is OK. This problem come when the peers try to communicate.

I'm stuck in this since 2 days now ... do you have some clue?

PS : One of my computer is MAC OS, i don't know if it can be a problem (you say platform : linux/windows).

Thanks.

matheussbernardo commented 5 years ago

Hello @bilouw I have the same problem! Did you solve it?

laike9m commented 5 years ago

If it's network issue, I don't think there's anything I can do. I basically have the same information(or less) as you. If you need help modifying code, let me know.

matheussbernardo commented 5 years ago

When both networks are NAT Restrict it is not working. I will take a look tomorrow at work!