iroh icon indicating copy to clipboard operation
iroh copied to clipboard

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

Open zh522130 opened this issue 1 year ago • 2 comments

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 avatar Oct 28 '24 11:10 zh522130

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

zh522130 avatar Oct 29 '24 01:10 zh522130

Anything with multiple network interfaces may be related to #2632

matheus23 avatar Oct 29 '24 08:10 matheus23

Today, I conducted some tests since I needed to upgrade to version 0.31.0. Tailscale was able to successfully establish a connection, and I found the Tailscale port in the UPnP section of the Personal Network. However, when I ran Iroh as a server on the Personal Network, I noticed that there were no UPnP port mappings for Iroh. I was unable to achieve UPnP mapping regardless of whether I ran the server on Windows, macOS, or Linux within the Personal Network.

zh522130 avatar Jan 17 '25 01:01 zh522130

That's useful info, any chance you know details about the UPnP software that iroh is failing to talk to? Would great if it was possible to reproduce elsewhere.

flub avatar Jan 17 '25 08:01 flub

That's useful info, any chance you know details about the UPnP software that iroh is failing to talk to? Would great if it was possible to reproduce elsewhere.

I'm not sure if it's related, because the Company Network has UPnP directly disabled. However, when I run the server on the Company Network, the computer on the Personal Network can successfully hole punching. I may not have time for further testing until my vacation is over.

zh522130 avatar Jan 17 '25 09:01 zh522130