Just a bit of a tip if you've got a network with a USG or Edgerouter (also Mikrotik) if you're managing a few devices set up DHCP Option 43 so UniFi devices automatically show up on the controller ready to adopt. Just do a quick Google.
This is simple with the Edgerouter - go into your DHCP server and add "18.104.22.168" into the UniFi Controller portion of your DHCP pool:
When I plugged in my UniFi AC Pro it automatically showed up in the controller ready to adopt. Just ensure you're logged into the controller before plugging in your gear but this is often easier than running set-inform on a bunch of devices.
Note: This is not really the recommended option as it doesn't allow me to change the controllers IP without your devices going offline. I'll always attempt to ensure they're informing to the controller via DNS but sometimes this is a little more difficult.