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

make tox use loopback device on linux when UDP and local lan is turned on #2749

Open
zoff99 opened this issue Apr 5, 2024 · 0 comments
Open
Labels
enhancement New feature for the user, not a new feature for build script

Comments

@zoff99
Copy link

zoff99 commented Apr 5, 2024

now tox is not using lo: (loopback) 127.0.0.1 to connect to devices on the same host. even when UDP and local lan is turned on.
now tox will only listen on the eth0: device (or whatever your LAN device is called)
loopback can get much higher transfer speeds than LAN.

this shows a hackish PoC how to enable 127.0.0.1
https://gist.github.com/zoff99/f8d605514a89d995c526bd6577a49051
(but this ONLY uses 127.0.0.1 and no other network device)

we should add an enhancement to detect local loopback device and make tox also listen on that for connections.
and probably the same for the other direction (trying to connect to a node on local loopback)

@zoff99 zoff99 added the enhancement New feature for the user, not a new feature for build script label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature for the user, not a new feature for build script
Projects
None yet
Development

No branches or pull requests

1 participant