Network & hotspot
CocktailPi can manage the WiFi of the Pi itself, so you can move the machine to a friend's party and connect it to their WiFi without a keyboard or SSH.
Requirements
The WiFi settings use NetworkManager, the default of Raspberry Pi OS Bookworm and newer. On other systems the page shows WiFi settings are not available on this system. The installer needs internet access, so the first WiFi has to be set up when you write the SD card (Raspberry Pi Imager) or via LAN.
WiFi settings
Administration → System → Network (admins) shows:
- Status – WiFi (network and IP), LAN and hotspot,
- Networks in range – press Search, then tap a network to connect. Protected networks ask for their password (8 to 63 characters); for saved networks the saved password is used,
- Saved networks – networks CocktailPi connects to automatically. The bin icon forgets one.

If connecting fails (wrong password, network out of range), CocktailPi gives up after a while and keeps the previous state; if the hotspot was running, it comes back.
The setup hotspot
If CocktailPi has no network connection (neither WiFi nor LAN) for 2 minutes, it opens its own WiFi hotspot. This happens after booting at a new place, or when the WiFi drops.
- The network is called CocktailPi-XXXX (the last four characters of the Pi's WiFi hardware address) and has a random password. The password stays the same until you press New password.
- On every logged-in screen – typically the touchscreen with its autologin user – the dialog CocktailPi hotspot opens with two QR codes: 1. Join the WiFi and 2. Open the setup page, plus the network name and password in plain text. The login page doesn't show them, so without an autologin user someone has to log in at the machine first.
- The dialog can be opened again from the user menu (in the simple view: Options) → Hotspot ….

Getting the machine onto a new WiFi
From a phone: scan the first QR code to join the hotspot, scan the second one to open the setup page, log in as an admin and choose the WiFi.
On the touchscreen: press Set up WiFi in the hotspot dialog. Admins land on the network settings; the local autologin user gets the WiFi settings in a dialog, even without the Admin role, but only while the hotspot runs. Type the password with the on-screen keyboard.
Once CocktailPi is connected, it turns the hotspot off. While an automatically started hotspot runs, CocktailPi keeps looking for saved networks every few minutes and connects back as soon as one is in range.
Starting the hotspot by hand
Start hotspot on the network page opens the hotspot even with a network connection, e.g. to use CocktailPi from phones at a place without WiFi. A hotspot started like this stays on, also after a restart, until you press Stop hotspot. Its dialog then shows a QR code for CocktailPi's start page instead of the setup page.