-
Notifications
You must be signed in to change notification settings - Fork 170
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
cannot add network services: listen tcp 127.0.0.1:2222: bind: An attempt was made to access a socket in a way forbidden by its access permissions. #230
Comments
I've got the same error today. Any update on this ? |
Not really a good answer, but I've temporarily opted to use dnsmasq for dns (to route work domains to work DNS servers, and the rest to normal resolvers), and then mangle the interface metric/priority; so then this works around the need for wsl-vpnkit for now; but I'd still much rather use wsl-vpnkit as a "proper" solution. |
Same problem here... |
No news on this ? |
I had the same issue, because a VM uses port 2222 in my PC. Looks like |
Don't know why it works, but this fixes mine: In an admin Powershell/ Command Prompt: net stop hns
net start hns Hope it can help others. Inspired by https://stackoverflow.com/a/67442253 |
Thanks, this worked. |
If the default SSH port 2222 is inaccessible choose next available port. Fixes issue sakai135#230
As per the title; I'm getting a weird error when running wsl-vpnkit on a fresh deployment of Ubuntu-22.04 and wsl-vpnkit v0.4.1
I apologise in advance for the wall of text; i'm trying to be concise in explaining what i'm seeing and what i've tried so far...
I've moved the
wsl-gvproxy.exe
out to/mnt/c/Users/myuser/wsl-gvproxy.exe
to avoid Exec errors, and am mainly trying to use the script located within my own deployment (in/opt/wsl-vpnkit
), running via Systemd on boot.All that aside; trying to run it without systemd results in the same error.
before running, i've also run:
sudo ip tuntap del wsltap mode tap
kill -Name wsl-gvproxy
I don't see anywhere in the code that refers to port 2222, but also nor do I see any processes running on port 2222 on Windows or WSL2.
netsh interface ipv4 show excludedportrange protocol=tcp
does show that 2222 is in an ExcludedPortRange, but I don't see the relevance.I am not connected to any VPN when running these tests, and have rebooted etc too. I don't see any useful info/errors in Event Viewer either.
Any ideas where to look next? Or where this port 2222 connection comes from or can be configured to use a different port?
WSL ifconfig:
Windows ipconfig (WSL item):
WSL Routes:
My Local LAN network is 192.168.0.0/16 -- could this create a conflict with the wsl-vpnkit gateway/host/local IPs in any way?
The text was updated successfully, but these errors were encountered: