Adopting UniFi Devices

This article will guide you through the process of adopting your Unifi devices such as Access Points, Switches and USG to your new Cloud Unifi hosted controller. Note: UXG-Pro and Flex Mini Unifi devices have different adoption instructions.



SSH

If you can SSH into the device, it's possible to do L3 adoption via CLI command:

  1. Make sure the device is running fairly recent firmware.

  2. Make sure the device is in the factory default state. If it's not, you run the following command or complete a physical factory reset of the device:

sudo syswrapper.sh restore-default
  1. SSH into the device and type the following and hit enter, substituting "example.cloudunifi.com" with the domain name of your hosted UniFi Network Controller:
set-inform http://example.cloudunifi.com:8080/inform
  1. After issuing the set-inform, the UniFi device will show up for adoption in the Devices section of the controller. Once you click Adopt, the device will appear to go offline or have the status of "Adopting" then proceed to "Provisioning" and "Connected".

Mobile App

  1. After installing the UniFi Mobile App (Available in iOS App Store & Android PlayStore), launch the app.
  1. Select your Controller from the list, or tap the "Add Controller" to log in and add your controller.
iOS Add Controller
iOS Add Controller
Android Add Controller
Android Add Controller
  1. For iOS: Once logged in to the Controller, tap More. There will be a Layer 3 Adoption option under Utilities. For Android: Once logged in to the Controller, tap More, then click on Remote Adoption from the menu.
iOS More
iOS More
Android More
Android More
  1. Devices will be displayed on this screen. Tap on the device that is to be adopted and select Adopt.
iOS Adopt
iOS Adopt
Android Adopt
Android Adopt
  1. After a few seconds (15-30 seconds, times will vary) the device will appear under the Devices section, which will be accessible by clicking on the Devices icon on the bottom menu bar.

UniFi Toolkit

The UniFi Toolkit is a free tool that scans your local network for factory-default UniFi devices and adopts them to your Cloud UniFi controller. It is available for Windows, macOS, and Linux.

Download: UniFi Toolkit

Desktop App (macOS)

A desktop application with a graphical interface is available for macOS. Download the DMG installer from the releases page, open it, and drag the app to your Applications folder.

Interactive Mode

  1. Open a terminal and run the toolkit:
./unifi-toolkit
  1. Select Adoption Mode when prompted. The toolkit will automatically detect your local subnet and scan for factory-default UniFi devices on the network.

  2. Enter your controller hostname when prompted, for example example.cloudunifi.com (replace "example" with your hosted controller id). Enter only the hostname, not the full inform URL. Leave the inform port at the default of 8080.

  3. Select the devices you want to adopt. The toolkit will connect to each device via SSH using default credentials and set the inform URL automatically.

  4. Open your hosted UniFi Network Controller and go to the Devices section. Your devices will appear with a status of "Pending Adoption" — click Adopt for each device.

  5. The device status will change from "Pending" to "Adopting" to "Provisioning", then finally to "Connected".

Non-Interactive Mode

For adopting devices without the interactive interface, run:

./unifi-toolkit --run -c example.cloudunifi.com -s 192.168.1.0/24

Replace example.cloudunifi.com with your controller hostname and 192.168.1.0/24 with your local subnet.


DHCP Option 43 and DNS Discovery

Both of these methods let a factory-default device find the controller on its own, with no SSH, app or toolkit step. On a Cloud UniFi controller, both need the Dedicated IP add-on.

To add a dedicated IP, log in to the Cloud UniFi portal, open the Billing page and choose Add Dedicated IP beside your subscription name. Your controller hostname moves to the new address automatically. If you do not want a dedicated IP, use the SSH, Mobile App or UniFi Toolkit methods above.

DHCP Option 43

  1. Put the dedicated IP address in DHCP option 43 on the LAN your devices are connected to. Ubiquiti's guide UniFi Layer 3 Adoption for Remote UniFi Network Applications shows the format for common DHCP servers. Option 43 can only carry an IP address, not a hostname.

  2. Factory-default devices on that LAN will appear in the Devices section of the controller as "Pending Adoption". Click Adopt.

  3. Once your devices are adopted, go to Settings > System > Advanced, turn on the Inform Host override and enter your controller hostname (such as example.cloudunifi.com). Adopted devices then use the hostname instead of the bare IP address for their inform URL. This can take 5 to 10 minutes.

DNS Discovery

  1. On your DNS server, create a record named unifi in the domain your DHCP server hands out to devices, for example unifi.example.com. Point it at your controller, either as an A record with the dedicated IP address or as a CNAME to your controller hostname.

  2. Make sure DHCP gives your devices both the DNS server and the domain name (DHCP option 15), so that the short name unifi resolves.

  3. Factory-default devices will look up unifi, reach the controller and appear in the Devices section as "Pending Adoption". Click Adopt.

  4. Set the Inform Host override to your controller hostname as described in step 3 of the DHCP Option 43 method.