DocsGet started

Wi-Fi setup and networking

The hotspot setup flow, saved networks, changing and forgetting networks, three ways to exit Wi-Fi setup, and how to find the device's address.

Network requirements#

  • 2.4 GHz only. 5 GHz networks won't connect.
  • An open network, or a password of 8–64 characters.
  • The computer and the device on the same LAN.

Setup flow#

Setup screen: QR code, hotspot name, password, and address
Wi-Fi setup: scan the code or join the hotspot manually
The bottom line of the setup screen says hold 5 seconds to exit
The bottom line alternates with “Hold 5s to exit”

The device opens its setup hotspot in two cases:

  • It has no saved networks, or can't connect to any of them within 60 seconds.
  • You hold BOOT for 5 seconds on the device.

While the hotspot is open, the screen shows the hotspot name, an 8-digit password, and a Wi-Fi QR code, and the indicator light breathes blue. The hotspot name is the device ID, stick-xxxxxx; a new password is generated each time the hotspot opens.

  1. Scan the code with your phone, or join the hotspot manually.
  2. Your phone usually opens the setup page automatically; if it doesn't, open http://192.168.4.1/ in the phone's browser.
  3. Choose a network, enter the password, and tap Connect. For a network that isn't listed, choose Other network… and type its name.
  4. The page shows, in turn: Saved, Join network, Get IP address.
  5. Once connected, both the page and the device screen show the IP address. The device's hotspot closes after 10 seconds, and your phone can switch back to its usual Wi-Fi.

The setup page appears in your phone's language, unless a screen language has already been chosen on the device. Tap English / 中文 in the top-right corner to switch; the device screen switches with it. To change it later, click English / 中文 on the right of the device web app's top bar (once paired, it switches the web app and the device screen together), or run stick lang zh|en.

While connecting, the device has to switch channels, which may kick your phone off the hotspot. If that happens, look at the device screen: an IP address means it connected; if the hotspot QR code is still there, it didn't. Rejoin the hotspot and refresh the page to see why.

Failure reason What to do
Wrong password Enter it again, minding upper and lower case
Network not found Make sure the router is on, not too far away, and on 2.4 GHz
Connection timed out Move closer to the router and try again
No IP address Check the router's DHCP settings or its limit on connected devices

Wi-Fi passwords#

Host tools and agents never handle Wi-Fi passwords. The stick command line and the MCP server have no command for setting a password, and the endpoint that lists networks doesn't return passwords. Passwords are only entered by a person: on the setup page served by the device's hotspot, or in Settings in the device web app.

Saved networks#

  • The device saves up to 3 networks.
  • Only a network it has connected to and gotten an IP from is saved. A network with a wrong password never makes the list.
  • When the list is full, the least recently used network is dropped.
  • Take the device somewhere it has been before and it connects automatically, with no setup needed.
  • After a disconnect, the device first retries the same network, then tries other saved networks. A router restart won't make it switch networks.

To see the list: Settings in the device web app, or stick wifi.

Change networks#

Two ways:

Method Steps
On the device Hold BOOT for 5 seconds to enter Wi-Fi setup, then follow the flow above
Device web app In Settings, click Add network and enter the name and password. The device leaves its current network to join the new one, and the web app disconnects with it; once connected, open the new address shown on the screen

When changing networks from the web app, if the new network fails, the device goes back to a saved network.

Forget a network#

Where How
Setup page Tap Forget under Saved networks
Device web app Click Forget in Settings
Command line stick wifi-forget MyWiFi

Forgetting the network you're connected to: the connection stays up for now, but once it drops, the device won't reconnect to it automatically.

Warningstick wifi-forget without a name clears all networks. The device goes offline immediately and enters Wi-Fi setup, and only a person next to the device can set it up again. Don't let an agent run wifi-forget without a name.

Exit Wi-Fi setup#

If you entered Wi-Fi setup but don't want to change networks, there are three ways out:

Method Notes
Button on the setup page While still connected to a network, tap Keep current network, close hotspot; on the connection-failed page, tap Cancel, go back to …
Hold BOOT for 5 seconds again on the device The bottom line of the screen alternates between the address 192.168.4.1 and Hold 5s to exit
Do nothing If the phone leaves the hotspot, or the setup page sees no activity for 1 minute, the device returns to a saved network on its own

After exiting, a device that is online closes the hotspot; one that is offline tries its saved networks and closes the hotspot once connected.

Find the device's address#

Method Notes
Look at the screen The home screen shows the current IP address
Use the host name http://stick-xxxxxx.local/, where stick-xxxxxx is the device ID. Relies on mDNS, which some routers and systems block
Command line stick ls lists devices found on the LAN and paired devices

If you can't find the device:

  • Make sure the computer and device are on the same network and subnet.
  • If the host name doesn't open, use the IP address instead; on the command line, specify it directly with stick --url http://192.168.1.50 info.
  • If the screen shows no IP and says Not connected, the device isn't on Wi-Fi; hold BOOT for 5 seconds to set it up again.
  • If the router gave the device a new address, trust the one on the screen.

To tell which device is which, click Find device in Settings in the device web app, or run stick identify: the screen and indicator light signal for 5 seconds.

View the source of this page on GitHub