Help Center Help Articles Professional Support Professional Integrators Community RMA & Warranty Downloads Tech Specs

Self-Hosting UniFi

The UniFi OS Server is the new standard for self-hosting UniFi, replacing the legacy UniFi Network Server. While the Network Server provided basic hosting functionality, it lacked support for key UniFi OS features like Organizations, IdP Integration, or Site Magic SD-WAN. With a fully unified operating system, UniFi OS Server now delivers the same management experience as UniFi-native–including CloudKeys, Cloud Gateways, and Official UniFi Hosting–and is fully compatible with Site Manager for centralized, multi-site control.

To install the legacy UniFi Network Server instead, refer to the appropriate guide below based on your operating system:

Requirements

Before setting up a self-hosted UniFi Network Server, ensure you meet the following requirements:

  • Operating System:
    • Linux: Ubuntu 23.04 or later; Debian 12 or later; or any modern Linux distribution meeting the below requirements:
      • systemd
      • libc 2.31+
      • podman 4.3.1+
      • slirp4netns 1.2+ (typically installed with Podman, but may require separate installation on some systems)
    • Windows: Windows 10 or later
      • WSL (Windows Subsystem for Linux) version 2 will be installed during setup.
    • macOS: Catalina 13.1.0 or later
  • Hardware Specifications:
    • CPU: x86-64 Processor
    • RAM: Minimum 2GB
    • Network: 100Mbps Wired Ethernet
    • Storage: At least 10GB free
  • Additional Requirements:

Installing UniFi OS Server

Windows/macOS

Linux

Windows as Service

  1. Download the Installer: Get the latest UniFi OS Server from Releases, or the Download page by right clicking the download and selecting copy link address. It should look something like this: https://fw-download.ubnt.com/data/unifi-os-server/8b93-linux-x64-4.2.23-158fa00b-6b2c-4cd8-94ea-e92bc4a81369.23-x6
  2. Install the Application: Launch the installer and follow the on-screen setup instructions.
  3. (Optional) Enable Remote Management: Once installed, create a UI Account (or sign in with an existing one) to enable remote management through Site Manager.
  4. Adopt Devices: Review UniFi Device Adoption for detailed instructions on adding UniFi devices like APs and switches to your deployment.
  5. Continue Running UniFi: In order to view and manage your adopted devices, the UniFi OS Server must continue running at all times. If it goes offline, your devices will continue to run using the last available configuration.
    1. If you are unable to continuously run the UniFi OS Server, we recommend taking advantage of a CloudKey or Official UniFi Hosting as an alternative hosting method.

Note: If you’re migrating from the UniFi Network Server to UniFi OS Server, make sure to close the Network Server before installing UniFi OS Server.

  1. Refresh package list and install required packages: sudo apt-get update && sudo apt-get install podman slirp4netns.
  2. Obtain the UniFi OS Server download link address from Releases, or the Download page by right clicking the download and selecting copy link address. It should look something like this: https://fw-download.ubnt.com/data/unifi-os-server/8b93-linux-x64-4.2.23-158fa00b-6b2c-4cd8-94ea-e92bc4a81369.23-x6
  3. Download the installer for your architecture using curl or wget for the URL in (2).
    1. curl: curl -O <uos_server_download_link>
    2. wget: wget <uos_server_download_link>
  4. Make the installer executable.
    chmod +x <local_path_to_uos_server_download>
  5. Run the installer.
    sudo <local_path_to_uos_server_download>
  6. (Optional) Enable Remote Management: Once installed, create a UI Account (or sign in with an existing one) to enable remote management through Site Manager.
  7. Adopt Devices: Review UniFi Device Adoption for detailed instructions on adding UniFi devices like APs and switches to your deployment.

Note: If you’re migrating from the UniFi Network Server to UniFi OS Server, make sure to close the Network Server before installing UniFi OS Server.

Other Helpful Commands

  • Stop UniFi OS Server: sudo systemctl stop uosserver
  • Start UniFi OS Server: sudo systemctl start uosserver
  • Disable Automatic Starting at System Boot: sudo systemctl disable uosserver
  • Enable Automatic Starting at System Boot: sudo systemctl enable uosserver
Currently, UniFi OS Server cannot be run as a Windows Service. For the time being, continue using the UniFi Network Server following these instructions.

Updating UniFi OS Server

Your UniFi OS Server and associated UniFi applications can be updated from the Update Manager on Site Manager, or directly from the local Control Plan settings. See UniFi Updates for more information.

Migrating From Network Server to UniFi OS Server

  1. Obtain a backup from your UniFi Network Server following the instructions here.
  2. Close the Network Server before installing UniFi OS Server.
  3. Follow the instructions above in Installing UniFi OS Server according to your operating system.
    1. On macOS and Windows, the installer will automatically detect and offer to migrate your existing Network Server setup (if installed in the default location).
  4. On Linux, or if auto-migration doesn’t occur, you can manually migrate by installing UniFi OS Server and using the Site Export tool. See UniFi Backups and Migration to learn more.

Frequently Asked Questions (FAQs)

How much does UniFi OS Server cost?
Nothing. It is completely license-free and available to all UniFi users.
How is UniFi OS Server different from Official UniFi Hosting?

Functionally, they are the same. The key difference is that UniFi OS Server is fully self-managed, meaning you are responsible for installation, maintenance, and uptime — unlike Official UniFi Hosting, which is hosted and maintained by us in the cloud.

See Getting Started with Official UniFi Hosting to learn more.

Can I use UniFi OS Server with a CloudKey?

A CloudKey cannot be used to manage UniFi Network devices when paired with a UniFi OS Server, since both include the UniFi Network application and devices can only be managed by a single host. However, CloudKeys can supplement a UniFi OS Server by running additional UniFi applications that the UniFi OS Server does not currently support:

  • UniFi Protect (cameras)
  • UniFi Access (access control)
  • UniFi Talk (VoIP phones)
  • UniFi Connect (digital signage, lighting, etc.)
Can I use UniFi OS Server with a Cloud Gateway (UDM, UCG, or Fortress Gateway)?

No. Cloud Gateways already include the UniFi Network application as part of their integrated control plane, which means they cannot be managed by an external UniFi OS Server. 

If you’re looking to pair a gateway with a UniFi OS Server-managed site, you’ll need to use one of our Independent Gateways (UXG-series), which are designed without a built-in controller and are fully compatible with external UniFi OS deployments

Will this be available as a standalone Docker/Podman container?
No. This is a complete solution that requires certain services to be run on the host to enable device discovery, adoption, and automatic system updates
The UniFi Network application starts up, but I do not see any nearby UniFi devices.
Make sure that the firewall on the host machine is allowing the ports needed by UniFi and that the UniFi Network application is not blocked by any anti-virus/spyware programs.

Also make sure that the UniFi devices and the application are on the same network. If not, then remote adoption is required.
I get a "Your connection is not private" warning when accessing via my browser.

This can be safely ignored, however we also allow users to upload their own TLS certificate in Settings > Control Plane > Console > Certificates

Can I manage UniFi Devices that are adopted by another UniFi Network application?
No. The UniFi Network application installed on Windows/macOS/Linux is not a viewer for other UniFi Network applications (running on other UniFi Hosts).
Can I self-host Protect or any of the other UniFi applications?
No. The UniFi OS Server enables you to self-host the UniFi Network application, along with key UniFi OS features such as Organizations, IdP Integration, and Site Magic SD-WAN. However, all other UniFi applications must be hosted on a compatible UniFi Console.
Was this article helpful?