Skip to content

bind: An attempt was made to access a socket in a way forbidden by its access permissions. #245

Open
@mr-martin-metal

Description

@mr-martin-metal

PS C:\Users<user>> 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=5a:94:ef:e4:0c:ee
  • 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.16.1
  • '[' 0 -eq 0 ]
  • set +x
    starting vm and gvproxy...
    INFO[0000] waiting for packets...
    time="2023-10-20T14:36:59+02:00" level=error msg="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."
    ERRO[0000] cannot read size from socket: EOF
    started vm and gvproxy
    ping: sendto: Network unreachable
    check: ❌ ping fail to IPv4 WSL 2 gateway / Windows host (192.168.16.1)
    ping: sendto: Network unreachable
    check: ❌ ping fail to IPv4 Windows host (192.168.127.254)
    ping: sendto: Network unreachable
    check: ❌ ping fail to IPv4 gateway (192.168.127.1)
    nslookup: can't connect to remote host (192.168.127.1): Network unreachable
    check: ❌ nslookup fail for example.com A using 192.168.127.1
    nslookup: write to '192.168.16.1': Network unreachable
    check: ❌ nslookup fail for example.com A using 192.168.16.1
    nslookup: can't connect to remote host (1.1.1.1): Network unreachable
    check: ❌ nslookup fail for example.com A using 1.1.1.1

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