Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugging and unplugging the network cable can increase the success rate of hole punching. #2856

Open
zh522130 opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working c-iroh-net hole punching

Comments

@zh522130
Copy link
Contributor

zh522130 commented Oct 29, 2024

Testing environment:

iroh-net version: v0.27.0
server (Linux, Windows),
client (Windows).

client is a laptop that supports both Wi-Fi and Ethernet connections.

Result

  1. When the client program starts, it's only connected to Wi-Fi. At this point, it can only use relay. I plug in the Ethernet cable, and after a while, it switches to direct connection. I then unplug the cable, and after a while, it switches back to relay.

    The network change is Wi-Fi → Wi-Fi + Ethernet → Wi-Fi,
    The connection state changes from relay → direct → relay.

  2. When the client program starts, it's connected to both Wi-Fi and Ethernet. At this point, it can only use relay. I unplug the cable, and after a while, it switches to direct connection. I then plug in the cable again, and after a while, it switches back to relay.

    The network change is Wi-Fi + Ethernet → Wi-Fi → Wi-Fi + Ethernet,
    The connection state changes from relay → direct → relay.

For detailed steps, please refer to the attached log.

wif---wifi+eth---wifi.log
wifi+eth---wifi---wifi+eth.log

@matheus23
Copy link
Contributor

Anything to do with multiple network interfaces may be related to #2632

@flub flub added c-iroh-net bug Something isn't working labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working c-iroh-net hole punching
Projects
Status: No status
Development

No branches or pull requests

4 participants