Windows 10: Accessing web server under WSL2 on the LAN

Discus and support Accessing web server under WSL2 on the LAN in Windows 10 Gaming to solve the problem; I have a problem connecting to any service/port under wsl2 on my Windows 11 PC.It's running Windows 11 Pro version 23H2 OS build 22631.3085 and I am... Discussion in 'Windows 10 Gaming' started by StuartHunter2, Feb 12, 2024.

  1. Accessing web server under WSL2 on the LAN


    I have a problem connecting to any service/port under wsl2 on my Windows 11 PC.It's running Windows 11 Pro version 23H2 OS build 22631.3085 and I am running WSL2 with Ubuntu 22.04.03 LTS. On the Windows side if I run a simple python web server via "python -m http.server 8080 --bind 0.0.0.0" I can access the index.html file I put in that directory just fine via localhost and also via the IP address. So:http://localhost:8080 Goodhttp://192.168.0.100:8080 Good I can also access it just fine if I go

    :)
     
    StuartHunter2, Feb 12, 2024
    #1

  2. Unable to connect to Google servers

    There are cases that web content are blocked due to proxy server settings. We suggest that you remove the check mark on the the proxy server box, follow the steps below:

    • Type Internet Options in the Ask me anything bar.
    • Click on Connections tab.
    • Click on LAN settings.
    • Remove check in Proxy server box.
    Once done, access your Google apps and check if issue persist.

    Send your post to keep us updated on how the steps goes.
     
    Darwin Dim, Feb 12, 2024
    #2
  3. Flaviu2 Win User
    WSL2 for windows

    I have failed into installing WSL for Windows. I have read here: https://docs.microsoft.com/en-us/win.../install-win10 how to do it, and at step 4:


    1. Download the latest package:
      [COLOR=var(--text)][COLOR=var(--info-dark)] Note[/COLOR]
      If you're using an ARM64 machine, please download the ARM64 package instead. If you're not sure what kind of machine you have, open Command Prompt or PowerShell and enter: systeminfo | find "System Type".
      [/COLOR]
    2. Run the update package downloaded in the previous step. (Double-click to run - you will be prompted for elevated permissions, select ‘yes’ to approve this installation.)

    I encountered:


    Accessing web server under WSL2 on the LAN 298438d1600682026t-wsl2-windows-image.png


    and


    Accessing web server under WSL2 on the LAN 298439d1600682036t-wsl2-windows-image.png


    What I did wrong ? I have the following W10 version:

    Accessing web server under WSL2 on the LAN 298440d1600682100t-wsl2-windows-image.png


    Another question: am I in the the right forum ?
     
    Flaviu2, Feb 12, 2024
    #3
  4. jcaswell Win User

    Accessing web server under WSL2 on the LAN

    W10 can connect to wider internet but cannot access web pages

    I have an odd issue with my W10 laptop linked to Sky broadband in the UK via wifi using a Sky router. The effect is that while I can actually access the internet (I can send and receive emails using Outlook and can connect to other machines using TeamViewer) I cannot access any web site (Google, BBC etc). There is no specific error message, merely that the access request timed out and a suggestion that it may be to do with proxy. I have tried the following:
    1. Other systems (W10 and ios) can access web sites using the same Sky router (therefore probably not a router problem)
    2. I have sent and received emails using Outlook, so the broadband connection is working (probably not a Sky problem)
    3. I have tried two different browsers (Firefox and Edge), no connection (not a browser problem)
    4. I am using Windows Defender and have:
      1. Made sure that Firefox is in the list of allowed systems in its Firewall, no connection after a reboot
      2. Turned off the Firewall and tried again - no connection
    My next step will be to re-install Windows, but has anyone got any other suggestions? Could it be some sort of virus (I have carried out a complete virus check using Defender) So - any suggestions?
     
    jcaswell, Feb 12, 2024
    #4
Thema:

Accessing web server under WSL2 on the LAN

Loading...
  1. Accessing web server under WSL2 on the LAN - Similar Threads - Accessing web server

  2. Unable to open web browser in WSL2

    in Windows 10 Gaming
    Unable to open web browser in WSL2: Failed to execute default web browser in WSL2.kindly help me to fix the issue. https://answers.microsoft.com/en-us/windows/forum/all/unable-to-open-web-browser-in-wsl2/5808d1ff-57e9-4fc7-b0c3-111d40c86ef5
  3. Unable to open web browser in WSL2

    in Windows 10 Software and Apps
    Unable to open web browser in WSL2: Failed to execute default web browser in WSL2.kindly help me to fix the issue. https://answers.microsoft.com/en-us/windows/forum/all/unable-to-open-web-browser-in-wsl2/5808d1ff-57e9-4fc7-b0c3-111d40c86ef5
  4. Accessing web server under WSL2 on the LAN

    in Windows 10 Software and Apps
    Accessing web server under WSL2 on the LAN: I have a problem connecting to any service/port under wsl2 on my Windows 11 PC.It's running Windows 11 Pro version 23H2 OS build 22631.3085 and I am running WSL2 with Ubuntu 22.04.03 LTS. On the Windows side if I run a simple python web server via "python -m http.server 8080...
  5. LAN Access to WSL 2 server difficulties

    in Windows 10 Gaming
    LAN Access to WSL 2 server difficulties: Hello, I am Copilot, an intelligent assistant that can help you with different tasks. I have been chatting with a user who wanted to access a web page that is hosted on the WSL2 of one of their computers from another device on their LAN. However, they had made several changes...
  6. LAN Access to WSL 2 server difficulties

    in Windows 10 Software and Apps
    LAN Access to WSL 2 server difficulties: Hello, I am Copilot, an intelligent assistant that can help you with different tasks. I have been chatting with a user who wanted to access a web page that is hosted on the WSL2 of one of their computers from another device on their LAN. However, they had made several changes...
  7. 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...
  8. 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...
  9. 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...
  10. One computer on home LAN keeps losing web access

    in Windows 10 Network and Sharing
    One computer on home LAN keeps losing web access: My home LAN has my desktop Gigabit connected to a Virgin Media "Superhub2 ac". My laptop is connected to a Netgear Ethernet switch which then connects to the Superhub2 ac. On startup, both computers can access web pages and the Superhub settings. Sometime later and only with...