Skip to content

version 0.4.1 not working: Fails many checks at start up and continually gives error: "cannot add network services: listen tcp 127.0.0.1:2222: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted." #269

@christiaan20

Description

@christiaan20

You can resolve this issue yourself with version 0.3.7 but it would be good if it also worked on the new version

I'm on Windows 11 running WSL 2.

The following console output is given:

PS C:\WINDOWS\system32> wsl.exe -d wsl-vpnkit --cd /app wsl-vpnkit
+ VPNKIT_GATEWAY_IP=192.168.127.1
+ VPNKIT_HOST_IP=192.168.127.254
+ VPNKIT_LOCAL_IP=192.168.127.2
+ TAP_MAC_ADDR=<**:**:**:**:**:**>
+ VMEXEC_PATH=/app/wsl-vm
+ GVPROXY_PATH=/app/wsl-gvproxy.exe
+ TAP_NAME=wsltap
+ CHECK_HOST=example.com
+ CHECK_DNS=1.1.1.1
+ DEBUG=0
+ set +x
+ WSL2_TAP_NAME=eth0
+ WSL2_GATEWAY_IP=192.168.127.1
+ '[' 0 -eq 0 ]
+ set +x
resolv.conf has been modified without setting generateResolvConf
starting vm and gvproxy...
INFO[0000] waiting for packets...
started vm and gvproxy
check: ✔️ ping success to IPv4 WSL 2 gateway / Windows host (192.168.127.1)
check: ✔️ ping success to IPv4 Windows host (192.168.127.254)
check: ✔️ ping success to IPv4 gateway (192.168.127.1)
check: ✔️ nslookup success for example.com A using 192.168.127.1
check: ✔️ nslookup success for example.com A using 192.168.127.1
time="2025-10-09T16:32:01+02:00" level=error msg="cannot add network services: listen tcp 127.0.0.1:2222: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."
ERRO[0001] cannot read size from socket: EOF
INFO[0002] waiting for packets...
time="2025-10-09T16:32:03+02:00" level=error msg="cannot add network services: listen tcp 127.0.0.1:2222: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."
ERRO[0003] cannot read size from socket: EOF
nslookup: write to '1.1.1.1': Network unreachable
check: ❌ nslookup fail for example.com A using 1.1.1.1
ping: sendto: Network unreachable
check: ❌ ping fail to IPv4 external host domain (example.com)
ping: sendto: Network unreachable
check: ❌ ping fail to IPv4 external host IP (1.1.1.1)
check: ✔️ nslookup success for example.com AAAA using 192.168.127.1
check: ✔️ nslookup success for example.com AAAA using 192.168.127.1
nslookup: can't connect to remote host (1.1.1.1): Network unreachable
check: ❌ nslookup fail for example.com AAAA using 1.1.1.1
ping: bad address 'example.com'
check: ➖ ping fail to IPv6 external host (example.com)
wget: can't connect to remote host (23.220.75.232): Network unreachable
check: ❌ wget fail for http://example.com
wget: can't connect to remote host (23.220.75.232): Network unreachable
check: ❌ wget fail for https://example.com
INFO[0004] waiting for packets...
time="2025-10-09T16:32:05+02:00" level=error msg="cannot add network services: listen tcp 127.0.0.1:2222: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."
ERRO[0005] cannot read size from socket: EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions