Ubiquiti UniFi
Connect a UniFi Network hotspot to the Hotspotly login page with the Add device wizard; local or cloud controller.
This guide connects a UniFi installation managed with the UniFi Network application to Hotspotly. The UniFi hotspot sends the guest to the Hotspotly login page as an external portal server. No tunnel is built. There are two methods, depending on where your controller runs:
| Controller | Method | How the guest gets online |
|---|---|---|
| Controller or gateway at the venue | Public RADIUS (tunnel-less) or Controller API (guest authorized on the controller) | Public RADIUS: the form goes to the UniFi gateway and UniFi asks the Hotspotly RADIUS server. API: as below. |
| Cloud or hosted controller | Controller API (guest authorized on the controller) | Hotspotly verifies the guest and authorizes the MAC address on the UniFi controller (authorize-guest). |
With a hosted controller, RADIUS requests come from the controller's server rather than the venue, so only the controller API method is offered there.
In short
My Devices → Add Device → Ubiquiti UniFi → choose where the controller runs and the method → fill in the form. The wizard shows the values to enter on the device (portal address, RADIUS address and secret, or the controller connection) with copy buttons. On the device page, use Test connection to verify each step.
Prerequisites
| Requirement | Details |
|---|---|
| Software | UniFi Network application with hotspot (guest portal) and the external portal server setting. |
| For public RADIUS | A static public IP for the venue or a dynamic DNS name that resolves to it, and a UniFi gateway that handles guest traffic. If the method is not enabled on the server, the wizard says so first. |
| For the controller API | A separate local admin account on the controller (Ubiquiti cloud accounts and 2FA cannot be used). For a controller on the venue network, a running Hotspotly Connector. |
| Admin access | An account that can change site settings in the UniFi Network application. |
1. Add the device
- On the My Devices page click Add Device and choose Ubiquiti UniFi.
- Under Where does your controller run? choose Controller or gateway at the venue or Cloud or hosted controller. The list shows how each method ends sessions, applies speed changes and builds the access log.
- If two methods are ready for a local controller, pick one under Connection method.
- Fill in the form:
- Public RADIUS: How does your device reach the internet? (static IP or host name) and Guest network gateway (LAN IP) (the IP of the UniFi guest portal; the form goes to
http://<this IP>:880/guest/s/<site>/login). - Controller API: the Controller connection fields (below).
- Public RADIUS: How does your device reach the internet? (static IP or host name) and Guest network gateway (LAN IP) (the IP of the UniFi guest portal; the form goes to
- Click Create device. Copy the values; the RADIUS secret is shown only on this screen.
Controller connection
| Field | What to enter |
|---|---|
| Reachable over the internet | If the controller is reachable over the internet. The address must be a public host name or IP; allow the Hotspotly server address on your firewall. |
| On the venue network (through Hotspotly Connector) | If the controller is on the venue network (for example https://192.168.1.10:8443). On the connector computer run hotspotly-connector configure-controller --url <address>. |
| Controller address | https://<address> for UniFi OS (UDM, Cloud Key Gen2+), https://<address>:8443 for the classic Network application. |
| Site | The UniFi site name (usually default). |
| Certificate fingerprint (SHA-256, optional) | Needed for a self-signed certificate. Test controller shows the fingerprint it sees; enter it here if it is correct. |
2. Settings in UniFi
Menu names can differ between UniFi Network versions; find the setting by what it does.
| Step | Where in UniFi | What to enter |
|---|---|---|
| External portal | Hotspot > Settings > Authentication > External Portal Server | The External portal address from the wizard (…?gw=unifi). Public RADIUS: authentication by RADIUS; controller API: external portal only. |
| RADIUS profile | Settings > Profiles > RADIUS | Public RADIUS only: RADIUS server, Authentication port 1812 and RADIUS secret. |
| RADIUS accounting | Settings > Profiles > RADIUS > Accounting | Public RADIUS only: accounting on, port 1813. The access log session record comes from these records. |
| Pre-authorization access | Hotspot > Settings > Pre-Authorization Access | The Allowed hosts (walled garden) and the addresses of the login methods enabled on the hotspot. |
| Encrypted redirect | Hotspot > Settings | Turn off "Encrypted redirect URL" in the hotspot settings, otherwise the portal cannot read the guest details. |
In the redirect UniFi sends the guest MAC address in the id parameter; ap, ssid, url and
t also arrive. The client IP address is not part of this redirect.
Automatic setup (UniFi Network API)
Mode: Automatic.
The Automatic setup card on the device page creates the guest WiFi network in your UniFi Network application through Ubiquiti's published Network Integration API (documentation version 10.1.68, read on 2026-11-14). This is a partial automatic setup: the published API cannot write the external portal server address, the RADIUS profile or the pre-authorization list. Those three steps stay manual and the card lists them (Steps you still do in the vendor interface).
| Requirement | Details |
|---|---|
| UniFi Network application | Version 10.0.0 or newer. Older versions are rejected with The device software version is older than the minimum supported.; 9.x was not verified. |
| Local controller | Create an API key in the UniFi Network application under Integrations. Access: Reachable over the internet (public address) or the connector for a venue LAN. |
| Cloud console | Create a Site Manager API key and enter the console ID from Site Manager. Hotspotly reaches api.ui.com only through the Site Manager connector. |
| Role | The key owner must be able to change WiFi settings (Super Admin). A read-only key can create the plan but not apply it: The account role is not sufficient for this action.. |
- Add the device as above, then open the Automatic setup card and pick the device type.
- Fill in the account form: API key, Console ID (cloud connector) (cloud console only), Site (name or ID; empty if there is only one) and Guest network name (SSID). Press Test connection.
- Press Create plan. Only reads happen. The plan shows one object, Guest WiFi network: an open WiFi network with the captive portal setting turned on. If a RADIUS profile named
Hotspotlyalready exists it is attached. - Confirm the plan and press Apply to device.
- Do the manual steps in the table below, then press Verify.
| Manual step | Where in UniFi | What to enter |
|---|---|---|
| External portal server address (copy it from the setup values) | Hotspot > Settings > Authentication > External Portal Server | The External portal address from the wizard. |
| RADIUS profile with the Hotspotly RADIUS server (name it Hotspotly) | Settings > Profiles > RADIUS | Public RADIUS only: RADIUS server, ports 1812 / 1813 and RADIUS secret. |
| Pre-authorization access list (walled garden) | Hotspot > Settings > Pre-Authorization Access | The Allowed hosts (walled garden) addresses. |
What the platform creates. One Guest WiFi network with the SSID you entered, open security and the hotspot (captive portal) setting. The platform recognises its object by the ID it stores in its ledger; if a network with the same name already exists in your site it is shown as a conflict and is never changed or deleted.
Undo. Create undo plan deletes only that network, and only if it still has the name and captive portal setting the platform created. If you renamed it, it is left alone (Object was changed on the device, left untouched).
| Symptom | Cause | Fix |
|---|---|---|
| The vendor account details are invalid. | Wrong or revoked API key, or a key for another console. | Create a new key and save it. |
| The account role is not sufficient for this action. | The key owner cannot change WiFi settings. | Use a Super Admin key. |
| The device software version is older than the minimum supported. | The Network application is older than 10.0.0. | Update the Network application. |
| The site or network was not found or is ambiguous; enter it in the form. | More than one site and none selected, or the name is wrong. | Enter the site name or ID in the form. |
| Enter the SSID (Meraki: slot number 0-14, optionally number:name). | The SSID field is empty. | Enter the guest network name. |
| No RADIUS profile named Hotspotly was found; the guest network is created without RADIUS and you bind it after creating the profile. | No RADIUS profile named Hotspotly yet. | Create the profile, create a new plan and apply again. |
Verified only on a simulator. The steps above were tested against a simulator built from Ubiquiti's published API description, not against a real controller. The first field test on a real controller will confirm that the captive portal setting on a new open network and the RADIUS profile binding behave as documented.
HTTPS login certificate
With public RADIUS the guest's login form goes to the UniFi guest portal (:880, HTTP).
Hotspotly cannot install this certificate; the HTTPS portal and certificate are set in the UniFi
Network application. With the controller API the browser does not post to UniFi; the guest goes
straight to the Hotspotly success page.
Test the connection
On the device page, Test connection checks each step against real records: Server connection method, Device record and identity, Controller access (when a controller is linked), with public RADIUS RADIUS client record and RADIUS record from the device, with the API First guest authorized on the controller. Then connect a phone to the guest SSID, log in and check the session on the Sessions page.
Session, speed and disconnect behaviour
| Topic | Public RADIUS | Controller API |
|---|---|---|
| Disconnect | Without a controller link, at the time limit (Session-Timeout). If you add a controller connection on the device card, immediately (unauthorize-guest). |
Immediately: when a guest is deleted or blocked or the customer is suspended, the authorization is removed on the controller. |
| Speed, quota | The bandwidth profile is sent as WISPr-Bandwidth-Max-Down/Up. Changes apply at the next login. | The authorized time is the guest session time; changes apply at the next login. |
| Access log | RADIUS accounting (start, interim, stop, internal IP, MAC). No NAT translation or DHCP records. | Hotspotly authorization record (start, end, MAC, user). No internal IP: the UniFi redirect does not carry it. |
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The wizard shows a method as "not ready" | Public RADIUS is not enabled on the server. | Choose the controller API method or tell the platform operator. |
| The controller rejected the user name or password. | Wrong account, a cloud account or 2FA. | Create a local admin account without 2FA on the controller. |
| The certificate is not trusted; enter the fingerprint below to pin it. | Self-signed certificate. | Check the fingerprint shown by the test and enter it in Certificate fingerprint (SHA-256, optional). |
| The connector is old or the controller address is not configured on it; update it and run configure-controller. | The controller address is not set on the connector or it is outdated. | Update the connector, run configure-controller and restart the service. |
| The guest sees "Router could not open the session" on the portal | The controller could not be reached or rejected the request. | Check the controller error on the device card and use Test controller. |
| Public RADIUS login does not complete | Guest network gateway (LAN IP) is not the UniFi guest portal IP. | Fix the hotspot gateway field. |
| The portal cannot read the guest details | Encrypted redirect is on or the address does not end with ?gw=unifi. |
Turn off the encrypted redirect; copy the portal address from the wizard. |
Known limits
- Automatic setup is partial: it creates the guest WiFi network only. The external portal address, the RADIUS profile and the pre-authorization list are entered by you.
- Guest authorization through the controller API still uses UniFi's local account login and the
stamgrendpoints (authorize-guest,unauthorize-guest); automatic setup uses the API key. - A controller on the venue network needs the Hotspotly Connector.
- RadSec is not offered.