Windows 10: Cannot connect to WSL2 docker service from LAN, netsh portproxy already set

Discus and support Cannot connect to WSL2 docker service from LAN, netsh portproxy already set in Windows 10 Gaming to solve the problem; Hello, I recently started a docker service in my WSL2 ubuntu, and I would like to access it from my LAN devices, I followed the instructions in this... Discussion in 'Windows 10 Gaming' started by Tingyi Yang, Aug 26, 2023.

  1. Cannot connect to WSL2 docker service from LAN, netsh portproxy already set


    Hello, I recently started a docker service in my WSL2 ubuntu, and I would like to access it from my LAN devices, I followed the instructions in this article: https://learn.microsoft.com/en-us/windows/wsl/networking, ,my command was:netsh interface portproxy add v4tov4 listenport=5678 listenaddress=0.0.0.0 connectport=5678 connectaddress=172.28.149.120but it's not working. Now I can access the docker service from WSL2 host machine using 1the IP of WSL2, 2localhost, 3IP address of the Windows machine as seen from WSL 2, but not any other machines in LAN. Please tell me how I can fix it.M

    :)
     
    Tingyi Yang, Aug 26, 2023
    #1

  2. Can't connect to Windows network services from WSL2

    I have Ubuntu 18.04 running in WSL2, from which I want to connect to Docker Desktop running on Windows.

    From cmd.exe I see that Docker service is listening on 127.0.0.1:2375:

    Code:
    C:\Windows\System32>curl 127.0.0.1:2375/info{"ID":"Z2IX:WLIX:FT2V:ZQYY:6222:M6Y6:EGZW:6D2G:EGVY:YABG:VYUM:MB2A","Containers":6,"ContainersRunning":2,"ContainersPaused":0...
    But in WSL2, I got this output by `docker info`:

    `ERROR: Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?`

    No connection to 127.0.0.1:2375 from WLS2:

    Code:
    $ curl 127.0.0.1:2375curl: (7) Failed to connect to 127.0.0.1 port 2375: Connection refused
    The option "Expose daemon on tcp://localhost:2375 without TLS" is ticked.
     
    Mikhail Batcer, Aug 26, 2023
    #2
  3. Anna Bol Win User
    where is netsh portproxy information stored

    Hello
    seanbateman1
    ,



    To find where the netsh portproxy information is stored, we suggest that you contact your ISP as they have more access to your machine.

    Feel free to contact us should you have other concerns.
     
    Anna Bol, Aug 26, 2023
    #3
  4. newfellow Win User

    Cannot connect to WSL2 docker service from LAN, netsh portproxy already set

    How to reset whole netsh? (Windows 7)

    Was wondering has the commands changed somehow since on Windows XP and on Windows Vista 'NETSH INT RESET ALL' cleaned entire netsh up from top to bottom.

    Now on Windows 7 this same command says no go and only way I can see it is by building .cmd/.bat which does something like:

    Code: netsh winsock reset all netsh int 6to4 reset all netsh int ipv4 reset all netsh int ipv6 reset all netsh int httpstunnel reset all netsh int isatap reset all netsh int portproxy reset all netsh int tcp reset all netsh int teredo reset all[/quote] now the king of the hill of bugs is this doesn't actually do even it's job even after reboot. values setup to are not reset to defaults. (I know I could add more entire list of entries there is, but looking for clean delete/wipe settings & default everything not to dump entire list of resets.)

    So, anyone got a plan B?
     
    newfellow, Aug 26, 2023
    #4
Thema:

Cannot connect to WSL2 docker service from LAN, netsh portproxy already set

Loading...
  1. Cannot connect to WSL2 docker service from LAN, netsh portproxy already set - Similar Threads - Cannot connect WSL2

  2. Cannot connect to WSL2 docker service from LAN, netsh portproxy already set

    in Windows 10 Software and Apps
    Cannot connect to WSL2 docker service from LAN, netsh portproxy already set: Hello, I recently started a docker service in my WSL2 ubuntu, and I would like to access it from my LAN devices, I followed the instructions in this article: https://learn.microsoft.com/en-us/windows/wsl/networking, ,my command was:netsh interface portproxy add v4tov4...
  3. wsl2 portproxy not working properly

    in Windows 10 Gaming
    wsl2 portproxy not working properly: win11 x64 + wsl2 ubuntups1 script for portproxy was added to autorun:Start-Sleep -Seconds 60netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=22netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=8000netsh interface portproxy add...
  4. wsl2 portproxy not working properly

    in Windows 10 Software and Apps
    wsl2 portproxy not working properly: win11 x64 + wsl2 ubuntups1 script for portproxy was added to autorun:Start-Sleep -Seconds 60netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=22netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=8000netsh interface portproxy add...
  5. Using WSL2 with Docker Desktop

    in Windows 10 Software and Apps
    Using WSL2 with Docker Desktop: Up until a couple months ago I was able to use Docker Desktop and WSL2 to run Kubernetes WITHOUT having a Linux distro on my dev system. During that 2 month period of time I did not do development of services in K8s and did not even start Docker Desktop.Now I am ready to...
  6. WSL2 Bridge connection to LAN.

    in Windows 10 Gaming
    WSL2 Bridge connection to LAN.: Installed WSL2 and I want it to get DHCP from my LAN. I do not want an internal of private network or port forwarding.It always gets an IP in the 172... range. After reboot it all seems to reset itself. aI've tried changing the vEthernet WSL adapter to External network in the...
  7. WSL2 Bridge connection to LAN.

    in Windows 10 Software and Apps
    WSL2 Bridge connection to LAN.: Installed WSL2 and I want it to get DHCP from my LAN. I do not want an internal of private network or port forwarding.It always gets an IP in the 172... range. After reboot it all seems to reset itself. aI've tried changing the vEthernet WSL adapter to External network in the...
  8. WSL2 Bridge connection to LAN.

    in Windows 10 Customization
    WSL2 Bridge connection to LAN.: Installed WSL2 and I want it to get DHCP from my LAN. I do not want an internal of private network or port forwarding.It always gets an IP in the 172... range. After reboot it all seems to reset itself. aI've tried changing the vEthernet WSL adapter to External network in the...
  9. Cannot Connect to Internet From WSL2

    in Windows 10 Network and Sharing
    Cannot Connect to Internet From WSL2: I could not be able to connect to internet from WSL2. WSL2 is freshly installed on a fresh installed copy of Windows 10 Pro insider.Pinging to any site shows 100% packet loss. I cannot install nor update anything. Internet is working fine on Windows. /etc/resove.conf...
  10. netsh portproxy bug; allows connection from wrong interface

    in Windows 10 Network and Sharing
    netsh portproxy bug; allows connection from wrong interface: I have a network setup with a primary network adapter with 192.168.173.X/24 which is the internal network. I also have a Microsoft KM-TEST Loopback Adapter with (PUBLICIP)/24 on it. So the only way I can connect to PUBLICIP is by connecting from the interface that is...