Skip to content

Ubiquiti UniFi

Prerequisites

Social WiFi requires internet access to the controller with a static, public IP and port.

UniFi Network Application needs to be online constantly. Use a hardware controller (e.g., UniFi Dream Machine) or a software controller on a server that you can access.

If you have a public IP address

Usually, this means that you’ll need to configure port-forwarding on your router. If you need, you can whitelist our IP address as well. (read further down the page to learn about the “use proxy” flag).

If you have no public IP address

Please see this article.

Compatibility

Social WiFi has been tested and is proven to work on the following configurations:

UniFi Network Controller

  • versions 7.4 and above (tested up to 9.0)

This guide is created using the newest 8.2.93 version.

Access point firmware

  • versions 4.0.48 or newer (tested up to 6.6.73)

Social WiFi configuration

WiFi and Hotspot settings

Go to the Settings -> WiFi and create a new WiFi network if you haven’t yet. If you already have an existing guest WiFi network, you can simply edit it.

Set your SSID name, go to the “Advanced” tab and select Manual. Make sure that Hotspot Portal is checked.

2024-06-12_15-28.png

Now, scroll down and set the “Security Protocol” as Open.

2024-06-12_15-25.png

Press Add WiFi Network on the left lower corner.

Now, click on the created SSID, and then click on Hotspot Portal:

2024-06-12_15-30.png

2024-06-12_15-31.png

Now, go to Hotspot(1) -> Landing Page(2).

2024-06-12_15-48.png

While in the “Hotspot” section, click on the Authentication settings(1) and select External Portal Server(2) at the bottom. Enter the Server IP in the pop up window and press Save.

One Way MethodsExternal Portal Server
External Portal35.190.70.141

2024-06-12_15-57.png

Now, click Save in the bottom right corner of the window and switch to the “Settings” tab from the menu on the right. Configure as follows:

Default Expiration*default is 8h - can be changed if needed

Landing Page Settings:

Show Landing Page:
HTTPS Redirection Support:
Encrypted URL:
Secure Portal:
Domain:



Checked
Unchecked
Unchecked
Unchecked
Checked

Domainlogin.socialwifi.com

2024-06-12_16-03.png

Now, proceed with adding the Allowed Authorization Access entries in the bottom right as described below.

Allowed Authorization Access

Add the following “Allowed Authorization Access” domains:

Mandatory:

socialwifi.com
sw-login.com

Facebook login:

facebook.com
fbcdn.net

Facebook remarketing pixel:

connect.facebook.net
www.facebook.com

Google remarketing tag:

www.googletagmanager.com
www.googleadservices.com
googleads.g.doubleclick.net

Youtube widget on login pages:

youtube.com
ytimg.com
yt3.ggpht.com
googlevideo.com

X (Twitter) login:

twitter.com
api.twitter.com
x.com
api.x.com
twimg.com

LinkedIn login:

linkedin.com
licdn.com

2024-06-12_16-05_1.png

2024-06-12_16-05_2.png

Click Save.

Add controller to the Social WiFi Panel

Now, in your Social WiFi Panel, go to the Access Points -> UniFi Integrations and press Add in the upper right corner.

2023-10-25_11-38.png

Configure your integration as follows:

HostnamePublic IP address or hostname of the controller
PortPort of the controller *
UsernameYour UniFi user login
PasswordYour UniFi user password

* Usually 443 (UDM/UDR/CloudKey Gen2) or 8443 (software controller)

If you don’t know where to find the IP address(1) and Port(2), please look at the screenshot below. Also, please note that in the search bar the IP address and port are separated by the ”:” mark.

2023-10-31_15-28.png

2023-10-25_12-30.png

After you press Create, you will see a list of sites inside your controller. Pick the site that you’ve configured in the previous steps.

image_479551.png

As you select the correct site, press Save selected site on the right lower corner.

2023-10-25_11-44.png

Now, you will see that the integration has been added. Press Import Access Points in order to import all the MAC addresses that you’ve provisioned in the previously set UniFi site.

2023-10-25_11-45.png

You will be able to select APs that you want Social WiFi to work on. Press Import selected.

2023-10-25_11-46.png

After adding the Access Points, you should see The integration and all the Access Points that are attached to it.

2023-10-25_11-53.png

Test the solution

Test the solution Connect with the WiFi network. You should see a login page. Go through the login process and, once finished, you should have internet access. You should see first connections and authorizations in the Social WiFi Panel’s statistics section.

Troubleshooting

Symptom: after connecting to the WiFi network, on the last step which is clicking the “Connect to the internet button” you’re not getting connected to the internet.

Solution: UniFi Access Points function as a DNS Proxy. Ensure that the domains are resolving correctly and that the Access Points have an active internet connection.