Skip to content
Ubiquiti UniFi

UniFi captive portal setup, start to finish

Enable the hotspot portal, point it at an external portal server, allow the domain before authorization, and give VoqadoWiFi a login it can use. Two things decide whether it works on the first try: the internal site id, and whether the internet can reach your controller.

Updated 9 October 2026, checked against the integration code.

Reviewed by , Founder, VoqadoWiFi · Written by the VoqadoWiFi team · Updated

How do I set up a captive portal on UniFi?
In the Network application enable the hotspot portal on your guest SSID, choose External Portal Server and enter www.voqadowifi.com. Guests then land on /guest/s/<site>/. Add www.voqadowifi.com and voqadowifi.com to Pre-Authorization Access, create a local admin, and save the controller address and internal site id in the dashboard.

Pick your controller first

The hotspot settings are the same everywhere. What changes is the login the integration uses, the port, and how the internet reaches the controller.

UniFi controllers and what changes
ControllerLogin and portSite and reachability
UDM Pro, UDM SE, UDM, UDRUniFi OS, HTTPS on 443Usually default; console is often the gateway
Cloud GatewayUniFi OS, HTTPS on 443default on every unit, so register access point MACs
Cloud KeyGen2 and later: UniFi OS on 443. First generation: :8443Sits behind your router, so needs a port or a tunnel
Self hosted Network ServerOlder login path on :8443One server, one site per venue, nothing open at the venue

The eight steps

  1. Find your internal site id
    Open the Network application with the venue’s site selected and read the address bar. The segment in /manage/site/<id>/ is the id. Only the first site on a controller is default; later ones get generated ids such as m8en8ejk, and renaming a site never changes its id.
  2. Turn on the hotspot portal for the guest SSID
    In Settings, WiFi, edit the guest SSID and enable the hotspot or guest portal. Keep the SSID open; the portal is the gate.
  3. Choose External Portal Server and enter the host
    In the hotspot settings set authentication to External Portal Server and enter www.voqadowifi.com. UniFi always sends guests to the fixed path /guest/s/<site>/ on that host. If your version asks for an IP address, switch on Redirect using hostname and enter the host there.
  4. Add the pre-authorization entries and leave HTTPS redirection off
    Add www.voqadowifi.com and voqadowifi.com to Pre-Authorization Access. If an HTTPS Redirection toggle exists, leave it off; it is the usual source of certificate warnings. Why each entry is there.
  5. Create a local admin for the integration
    Under Admins and Users add an account restricted to local access, with Network application access and no two factor prompt. A ui.com cloud account cannot log in to the controller API.
  6. Make the Network application reachable
    UniFi has no redirect token, so VoqadoWiFi logs in to your controller for every guest. The controller needs an HTTPS address the internet can reach: a self hosted server on a VPS, a forwarded port on the console, or an outbound tunnel.
  7. Save the controller in the dashboard and pick the site
    Set the network vendor to Ubiquiti UniFi, enter the controller URL (no port for UniFi OS consoles, :8443 for a self hosted server), the local admin, and leave Console Type on Auto-detect. Test Connection lists every site as id and name; click yours.
  8. Test on a phone that has never joined
    With mobile data off, join the guest SSID. The phone should open https://www.voqadowifi.com/guest/s/<site>/, be passed to your branded portal, and be online within a few seconds of submitting the form.

What happens when a guest connects

The phone joins the guest SSID and UniFi redirects it to https://www.voqadowifi.com/guest/s/<site>/ with id (the device MAC), ap (the access point MAC), t (a timestamp), url (the page the guest wanted) and often ssid. VoqadoWiFi finds the venue by that site id and passes the guest to its branded portal.

Unlike Omada there is no token. When the guest submits the form, VoqadoWiFi logs in to your controller with the stored local admin and sends authorize-guest for the device MAC with a session length in minutes and the access point MAC. On a UniFi OS console that call goes to /proxy/network/api/s/<site>/cmd/stamgr; on a self hosted server or first generation Cloud Key, to /api/s/<site>/cmd/stamgr.

Each attempt has an 8 second limit and there are two attempts. A rejected login is not retried, because a wrong password will not fix itself. If authorization fails, the guest sees a screen saying their details were saved and how to reconnect, and Portal Health records the error kind.

The site id trap

When you create a site you give it a friendly name, such as “Harbour Bar Main”. UniFi assigns it an internal id at the same time, and every path uses the id. Put the friendly name in the dashboard and the portal loads, your logo appears, the form submits, and then nothing happens, because the authorization is aimed at a site that does not exist (api.err.NoSiteContext).

A guest who reaches a venue that is not linked at all sees a page that names the site VoqadoWiFi looked for, which tells you exactly what to fix. The fastest route to the right id is Test Connection in the dashboard: it lists every site the account can see as id and display name.

Two venues on one site name

Single site consoles call their site default. When two venues on separate consoles both send guests to /guest/s/default/, VoqadoWiFi matches the ap MAC against each venue’s registered access points. Register every access point MAC on the location, or guests at the newer venue may see the older venue’s portal.

Reaching the controller

Three ways to make the Network application reachable
OptionBest forOpen ports at the venue
Self hosted server on a VPSGroups and new deploymentsNone
Forward a port to the consoleOne venue with a public addressTCP 443 (UniFi OS) or 8443 (older controller)
Outbound tunnel to the consoleVenues behind carrier grade NATNone

The integration accepts the factory self signed certificate on UniFi controllers. If your firewall needs a single address to allow, the platform can send controller calls through a fixed egress address; ask through the contact page whether that is enabled for your account before you rely on it.

What UniFi already does for free

Built in UniFi hotspot versus an external portal
CapabilityUniFi on its ownWith an external portal
Terms pageYesYes
Vouchers and simple passwordYesEmail sign in instead
Payment for accessYesNot offered
Keep the guest email addressNoYes, with consent recorded
Send a review request after the visitNoYes, to guests who agreed to email, once guest email is live at your venue
Guest list with repeat visit historyNoGuest list on every plan; visit history on Growth
Export the listNoYes, CSV at any time

UniFi questions

What is a UniFi external portal server?
The setting that tells UniFi to redirect unauthenticated guests to a host you choose instead of its own login page. The external service then logs in to the controller and authorizes each device once the guest has signed in.
Do I type the full portal URL or just the host?
The host, www.voqadowifi.com. UniFi adds the fixed path /guest/s/<site>/ itself, so guests arrive at https://www.voqadowifi.com/guest/s/<site>/ with the device and access point MACs attached.
Why is my portal loading but nobody gets online?
The usual causes are the wrong site id, a controller the internet cannot reach, or a login the controller rejects. Portal Health in the dashboard shows the error kind for every attempt: network, timeout, ssl, auth or controller.
Does this work behind a tunnel or reverse proxy?
Yes. UniFi OS returns its CSRF token in a header and inside the TOKEN cookie, and some proxies drop the header. The integration reads the cookie when the header is missing, so a tunnelled console still authorizes guests.
Which UniFi controllers are supported?
UniFi OS consoles such as the UDM family, UDR, UniFi Express, Cloud Gateways and Cloud Key Gen2 and later, plus the self hosted UniFi Network Server and the first generation Cloud Key. Console Type Auto-detect tells the two generations apart.
Can I use unifi.ui.com instead of exposing the controller?
No. Ubiquiti’s Site Manager API at api.ui.com lists hosts and devices but cannot authorize guests, so the Network application itself must be reachable.
Can I charge for WiFi with this?
No. UniFi’s own hotspot can take payment for access; VoqadoWiFi does not. If you want to keep who came in rather than charge them, it is the other way round.

When something is not working

Deeper reading

The longer UniFi articles from the blog. Where an article and this page disagree, this page is the one checked against the current integration.

Keep reading

UDM Pro guest portal setupUniFi Cloud Gateway setupUniFi Cloud Key setupSelf hosted UniFi Network ServerWalled garden domains for Omada and UniFiWhich access points support an external portalThe same walkthrough for TP-Link Omada

Ubiquiti and UniFi are trademarks of Ubiquiti Inc. VoqadoWiFi is not affiliated with, endorsed by, or sponsored by Ubiquiti. Menu labels move between Network application releases; the setting stays with the guest SSID’s hotspot portal options.

Get the free Guest WiFi Launch Pack

Four worksheets for switching guest WiFi on at your venue: a network inventory, a launch acceptance checklist, a change window plan and a staff handoff. Works for Omada and UniFi setups.

4 files, ready to download on this page. No account needed.

Connect your UniFi controller free Create the free account, add your venue, and Test Connection lists your site ids. One location and 500 guest logins a month, no card. Create your free account