n0-computer / iroh

peer-2-peer that just works
https://iroh.computer
Apache License 2.0
2.61k stars 165 forks source link

The hole punching results are inconsistent when the server is run on different networks. #2848

Open zh522130 opened 4 weeks ago

zh522130 commented 4 weeks ago

I have two networks,

one called Company and the other Personal.

If the server runs on the Company network and the client requests a connection from the Personal network, the hole punching succeeds immediately.

However, if the server runs on the Personal network and the client is on the Company network, the hole punching consistently fails. The attachments contain the client logs for both scenarios.

personal_as_client.log company_as_client.log

zh522130 commented 3 weeks ago

I tested on macOS, Linux, and Windows, and the results were consistent. It seems to be related only to the network.

matheus23 commented 3 weeks ago

Anything with multiple network interfaces may be related to #2632