Wi-Fi Hotspot Setup with nmcli
INFO
Simple and easy guide to set up a Wi-Fi hotspot using nmcli
on Linux.
Quick Setup
Check your Wi-Fi interface name:
shellsudo nmcli device status
Create the Wi-Fi hotspot:
shellsudo 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.
Start the hotspot:
shellsudo nmcli connection up Hotspot
Stop the hotspot:
shellsudo nmcli connection down Hotspot
Delete the hotspot (if you want to remove it):
shellsudo nmcli connection delete Hotspot
Alternatively using the UUID:
shellsudo 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