- Purple
- Captive portals: a complete guide
- UniFi captive portal setup guide
UniFi captive portal setup guide
How to add a Purple captive portal to Ubiquiti UniFi: an external portal server, controller authorisation and a walled garden, with a link to Purple's step-by-step setup guide for the exact configuration.
Video overview
Listen to this guide
View podcast transcript
Part of our core series: Captive Portal Guide →
Ubiquiti UniFi captive portal and guest WiFi configurator
Generate UniFi Network Hotspot Manager settings, configure pre-authorization walled gardens, calculate guest VLAN subnet sizing, and validate cloud RADIUS accounting for seamless Purple deployment.
Internal routing engine handles guest captive redirection with native gateway isolation.
Local IP or internal hostname used for controller API communication.
A captive portal is the sign-in page guests see before they get online. On Ubiquiti UniFi, the access points and the UniFi Network controller run the WiFi; Purple runs that portal and the first-party data behind it, without replacing any of your UniFi kit.
How Ubiquiti UniFi works with Purple guest WiFi
Purple is a cloud overlay. Your UniFi Network controller keeps running the WiFi; Purple runs the guest experience through features UniFi already has.
- External portal server. In UniFi's Hotspot Manager you point the landing page at Purple instead of UniFi's built-in page. A new device is redirected to your Purple splash page, the visitor signs in, and control returns to UniFi.
- Controller authorisation. Purple authorises each guest by communicating with your UniFi Network controller directly, using its public address and a dedicated controller login you create for the purpose. If the controller is not publicly reachable, a port forward makes that connection possible.
- Walled garden. UniFi's pre-authorisation rules let the splash page, and any payment or social-login steps, load before a visitor has signed in.
For repeat visitors, UniFi's SecurePass (Passpoint) option adds a secure, encrypted connection backed by RADIUS, so known users reconnect without signing in again.
That is the whole model: UniFi moves the packets and manages the radios, Purple owns the sign-in and the data. Because it runs on standard external web authentication and RADIUS, it works the same way across Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist, Ubiquiti UniFi, Cambium, Extreme and Fortinet. Purple is hardware-agnostic by design.
What you need
- A UniFi Network controller (on a Dream Machine, CloudKey, or your own server) with admin access.
- A Purple venue with your splash page and sign-in journey set up.
- A dedicated UniFi controller login and your controller's public address, so Purple can authorise guests.
Set it up with Purple
The exact settings, the external portal server address, the Hotspot Manager landing page options, the pre-authorisation domains, the Venue Settings that link Purple to your controller, and the optional SecurePass configuration, are documented step by step in Purple's support guide, with the precise values to enter.
Ubiquiti UniFi Network setup guide
Follow that guide for the configuration. This page explains how the pieces fit together, so you know what each step is doing.
What you get
Once guests sign in through Purple, every visit becomes verified, conscious-choice opt-in first-party data: who visited, how often, and how to reach them with permission. That is the difference between WiFi that connects people and WiFi that builds a marketing audience you own. Purple is GDPR-aligned and ISO 27001 certified, with 99.999% uptime across more than 80,000 live venues.
Key Definitions
Captive portal
The sign-in page a visitor sees before they get online. Purple hosts and runs it; UniFi redirects devices to it.
The guest experience layer Purple adds on top of your UniFi WiFi.
External portal server
A UniFi setting that sends an un-authenticated device to an externally hosted sign-in page instead of UniFi's built-in one.
How UniFi's Hotspot Manager hands the guest to the Purple splash page.
Controller authorisation
Purple talks to your UniFi Network controller over its public address, using a dedicated login, to authorise each guest session.
How Purple lets a signed-in guest online on UniFi.
Walled garden
A short allow-list of addresses a device can reach before it has signed in.
Lets the splash page, payments and social login load pre-authentication.
SecurePass (Passpoint)
An encrypted WiFi connection backed by RADIUS that lets known users reconnect without signing in again.
An optional secure tier for repeat visitors.
Frequently asked questions
How does Ubiquiti UniFi integrate with an external captive portal?
UniFi Network Hotspot Manager allows administrators to delegate guest authentication to an External Portal Server. When an unauthenticated visitor connects to the guest SSID, the UniFi gateway intercepts initial HTTP traffic and redirects the client browser to Purple at auth.purplewifi.net. Once the visitor completes authentication, Purple calls the UniFi controller API to authorize the client MAC address for internet access.
Which ports must be open between the UniFi controller and the captive portal?
For cloud or external captive portal integration, the UniFi Network controller must be reachable for authorization API calls on TCP port 8843 (or TCP port 8443 on legacy installations). For secure guest browser redirection, ensure outbound HTTPS on TCP port 443 and DNS on UDP port 53 are permitted within the guest pre-authorization firewall profile.
Why should operating system captive probe hosts never be allowlisted?
Operating systems including iOS, Android, macOS, and Windows probe specific endpoints like captive.apple.com and connectivitycheck.gstatic.com to detect captive networks. If these probe hostnames are placed in UniFi Pre-Authorization Access, devices receive an unintercepted HTTP 200 response, determine that internet connectivity is active, and suppress the automatic login browser modal.
What pre-authorization access rules are required for Purple on UniFi?
UniFi Hotspot Manager requires allowlisting Purple authentication and asset domains in Pre-Authorization Access before guest sign-in. This includes auth.purplewifi.net, securelogin.purplewifi.net, api.purplewifi.net, and cdn.purplewifi.net. If social login or paid tiers are enabled, respective OAuth and payment gateway endpoints must also be allowlisted.
How does RADIUS accounting enhance guest WiFi management on UniFi?
Configuring a RADIUS profile pointing to Purple on UDP ports 1812 (authentication) and 1813 (accounting) enables real-time session tracking. Setting the interim accounting update interval to 300 seconds allows UniFi access points to periodically report guest airtime, transmitted bytes, and dwell duration to the Purple analytics platform without overloading controller resources.
What subnet size and DHCP lease duration are recommended for guest networks?
Guest networks experience high turnover and lease churn. High-traffic venues should configure at least a /22 subnet (1,021 usable IP addresses) and reduce DHCP lease time to 2 hours (7,200 seconds). This prevents address pool exhaustion during peak visitor turnover while Client Device Isolation prevents unauthorized lateral device communication.
Continue reading in this series
Captive portal for HPE Aruba: set it up with Purple guest WiFi
Setting up a guest captive portal on HPE Aruba Instant access points with Purple, using an external captive portal, RADIUS and an allowlist, through Aruba Central or the Virtual Controller.
Captive portal for Ruckus Cloud: set it up with Purple guest WiFi
How to run a Purple captive portal on Ruckus Cloud (Ruckus One): a third-party WISPr captive portal, an integration key and a walled garden, with a link to Purple's step-by-step setup guide for the exact configuration.
Juniper Mist and guest WiFi: captive portal setup with Purple
How Juniper Mist access points work with Purple guest WiFi using an external portal and the Mist API secret, including what differs because Mist does not use RADIUS for the captive portal.
Got questions about your specific setup?
Our team works with venue operators, IT managers, and network engineers across 80,000 venues. Book a 20-minute call and we will show you how others like you solved it.