wsl no internet

alice alice 100 Reputation points
2025-01-06T03:12:28.68+00:00
wsl --install -d Ubuntu-24.04

Follow this toe install ubuntu on windows.And then open the Ubuntu-24.04 LTS and git clone any project . it always nothing to do .

how to activate the internet on wsl

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-01-07T08:07:17.6433333+00:00

    Hello

    Thank you for posting in Q&A forum.

    To ensure your WSL (Windows Subsystem for Linux) has internet access, you can follow these steps:

    1. Check Network Configuration:

    • Open your WSL terminal and run the following command to check your network configuration:

    ip addr show

    • Ensure that your WSL instance has an IP address assigned. If not, you may need to restart your WSL instance or your computer.

    1. Restart WSL:

    • Close your WSL terminal and restart WSL by running the following command in PowerShell:

    wsl --shutdown

    • Then, reopen your WSL terminal.

    1. Check Internet Connectivity:

    • Test your internet connection by running a command like ping: bash ping google.com

    1. Check your Windows firewall settings or network adapter configurations:

    Reference:

    Accessing network applications with WSL | Microsoft Learn

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.