Wifi-hotspot2

From wikipost
Revision as of 20:31, 15 November 2025 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here is a simpler way to set up a wifi hotspot to let multiple computers see each over over wifi.

The hotspot currently does not have a way to provide an internet connection to the connected clients:

nmcli connection add type wifi ifname wlan0 con-name p2p autoconnect yes ssid myhotspot
nmcli connection modify p2p wifi.mode ap ipv4.method shared ipv4.addresses 192.168.10.1/24
nmcli connection modify p2p wifi-sec.key-mgmt wpa-psk wifi-sec.psk mywifipassword wifi-sec.proto rsn wifi-sec.pairwise ccmp wifi-sec.group ccmp
nmcli connection modify p2p wifi.band bg
nmcli connection up p2p

To see the state of all connection profiles:

nmcli c show

To delete the p2p connection:

nmcli c del p2p