Skip to content

Wi-Fi Hotspot Setup with nmcli

INFO

Simple and easy guide to set up a Wi-Fi hotspot using nmcli on Linux.

Quick Setup

  1. Check your Wi-Fi interface name:

    shell
    sudo nmcli device status
  2. Create the Wi-Fi hotspot:

    shell
    sudo nmcli device wifi hotspot ifname wlan0 ssid MyHotspot password "MyStrongPassword"

INFO

  • Replace wlan0 with your actual Wi-Fi interface name.
  • Replace MyHotspot with your desired SSID (Wi-Fi name).
  • Replace "MyStrongPassword" with your chosen password.
  1. Start the hotspot:

    shell
    sudo nmcli connection up Hotspot
  2. Stop the hotspot:

    shell
    sudo nmcli connection down Hotspot
  3. Delete the hotspot (if you want to remove it):

    shell
    sudo nmcli connection delete Hotspot
  4. Alternatively using the UUID:

    shell
    sudo nmcli connection delete uuid "UUID"

Viewing Hotspot Information

To see which connections your device has and how the hotspot id is, use:

shell
sudo nmcli connection show

To see information about your active hotspot and its settings, use:

INFO

This will display details like the SSID, IP settings, WPA, and other parameters for your hotspot.

shell
sudo nmcli connection show Hotspot

Listing Available Hotspots and Access Points

To view available Wi-Fi networks (including nearby hotspots you can connect to), run:

shell
nmcli device wifi list