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

WSL Docs Fix: Port Forwarding Loop. #6519

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

teufortressIndustries
Copy link

Previously, the guide suggested to port forward listenaddress=0.0.0.0 to connectaddress=localhost. The port forwarding service will listen on all available network interfaces on the specified port. When an incoming connection is received, the service will forward the connection to localhost (or 127.0.0.1) on the same port. Since localhost is a loopback address, the connection will be sent back to the same machine that's running the port forwarding service. The connection will then be received by the port forwarding service again, which will forward it to localhost again, and so on.

TLDR: Don't forward 0.0.0.0 to localhost, it creates a loop that causes lag and other mayhem.

Checklist:

oobabooga and others added 4 commits October 1, 2024 14:48
Previously, the guide suggested to port forward `listenaddress=0.0.0.0` to `connectaddress=localhost`.
The port forwarding service will listen on all available network interfaces on the specified port.
When an incoming connection is received, the service will forward the connection to localhost (or 127.0.0.1) on the same port.
Since localhost is a loopback address, the connection will be sent back to the same machine that's running the port forwarding service.
The connection will then be received by the port forwarding service again, which will forward it to localhost again, and so on.

This noticeably hits on the performance of the machine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants