Network and internet

Restart your network connection

Turn the network off and on again from the terminal, and see what's using it.

  1. Turn Wi-Fi off and on
    Terminal
    networksetup -setairportpower en0 off && networksetup -setairportpower en0 on

    en0 is Wi-Fi on most Macs.

  2. See which apps are using the network
    Terminal
    nettop

    Press q to quit.

  1. Restart networkingNeeds sudo
    Terminal · Ubuntu / Debian
    sudo systemctl restart NetworkManager
  2. See network traffic liveNeeds sudo
    Terminal · Ubuntu / Debian
    sudo apt install -y nload && nload

    Press q to quit.

  1. See your network adapters
    PowerShell
    Get-NetAdapter
  2. Restart oneRun as administrator
    PowerShell
    Restart-NetAdapter -Name "Wi-Fi"

    Use Ethernet instead of Wi-Fi for a cable connection.

  3. Get a fresh IP address
    PowerShell
    ipconfig /release; ipconfig /renew