Homebridge UI works but pairing fails? Check Docker mode
gist Check host networking, local discovery, and the advertised interface. Preserve the data volume and back up before changing pairing settings.
You stopped about in. Jump back
contents
If Homebridge’s web page loads but Apple Home cannot pair, check Docker network mode, local discovery and bridge logs before resetting pairing.
I run Homebridge in Docker on my Unraid box. The official Docker image documentation requires host networking for HomeKit discovery.
You need access to the container settings, the Homebridge UI, and an iPhone or iPad on the local network. Save a Homebridge backup before changing settings.
Step 1: Find the bridge setup screen
Open the Homebridge UI and find the dashboard’s setup QR code. The official image normally serves its UI on port 8581. Check the UI logs for startup errors.
Use the setup code for the bridge you intend to add. Keep QR codes and numeric setup codes private.
The screenshots come from a throwaway test install, not my live one.
In Apple Home, choose Add Accessory and scan the bridge QR code. The code supplies setup details, but the phone must still reach the bridge. See Homebridge’s pairing instructions.

Step 2: Check discovery on the local network
Homebridge uses multicast DNS, or mDNS, so Apple devices can discover it. Check these three parts of the connection:
- Apple Home on the LAN: Connect the phone to the server’s local network. Check whether guest Wi-Fi or client isolation blocks access to other devices.
- Linux host networking: Check that the container shares the Linux host’s network stack.
- Homebridge discovery and pairing: Check that Homebridge advertises an address and listens on an interface Apple devices can reach.
Homebridge’s mDNS documentation explains discovery and interface selection.
If the phone and server use separate VLANs, check discovery forwarding and firewall access to the bridge’s HomeKit service port. mDNS normally works on the local link. A routed connection to the UI does not prove that discovery works across those networks. See RFC 6762.
Step 3: Check the Docker network mode
On Unraid, open the Docker tab, click the Homebridge container icon, and choose Edit. Check Network Type.
For the official image on Linux, use Host. Preserve the existing storage mapping to /homebridge. An empty replacement folder can start Homebridge with a fresh configuration.
Unraid’s Bridge mode uses an internal Docker network. Host shares the server’s network stack. Check for port conflicts before saving the change. See Unraid’s container documentation.
For Docker Compose, this setting belongs under the existing Homebridge service:
services:
homebridge:
network_mode: host
Keep the remaining service settings and volume mapping. Remove that service’s ports: block when switching to host mode. Docker ignores published-port mappings in this mode. See Docker’s host networking documentation.
After applying the change, check the logs. Confirm that Homebridge starts without errors before retrying Apple Home.
Step 4: Check the advertised interface
If host mode is already set, open Homebridge Settings and review the network interface selection.
A server may have LAN, VPN, and virtual container interfaces. Select the interface Apple devices can reach. Homebridge’s interface setting affects the HomeKit TCP listener. Its effect on advertised addresses also depends on the selected mDNS advertiser. See Homebridge’s interface selection documentation.
Change one setting at a time. Restart Homebridge, review the logs, and retry discovery. If the bridge appears but pairing times out, check firewall access to its configured HomeKit port.
Step 5: Retry pairing before considering a reset
In Apple Home, choose Add Accessory and scan the current bridge QR code.
| Result | Next check |
|---|---|
| The bridge never appears | Network mode, advertised interface, and local discovery |
| The bridge appears but pairing times out | Access to the advertised address and HomeKit service port |
| Home reports that the accessory is already added | Existing bridge entries and pairing state |
| A plugin’s separate accessory is missing | That plugin’s pairing instructions and setup code |
Check networking before resetting an existing bridge. A reset removes pairing information and requires pairing again. Removing accessories can also mean rebuilding room assignments, scenes, and automations. Back up first, then follow the official troubleshooting and reset instructions if pairing state still needs clearing.
Compare the installation options
| Option | When it fits | Tradeoff |
|---|---|---|
| Linux Docker with host networking | You already use Docker on Unraid or another Linux host | The official image requires this mode. Check for host port conflicts. |
| Dedicated container LAN address | You need a separate address for the container | Unraid supports custom macvlan/ipvlan networks. This differs from the official image’s required host mode and needs separate discovery checks. |
| Native Homebridge installation | You want fewer container network settings | You maintain Homebridge and its dependencies on the host. Use the instructions for that operating system. |
With macvlan, a container cannot communicate directly with its host by default. Review Docker’s macvlan restrictions before choosing a dedicated address.
For a native setup, find your operating system in the Homebridge installation index.
Common questions
Why does the Homebridge web page work but pairing fail?
The UI and HomeKit use separate services. Check container networking, mDNS discovery, and access to the advertised HomeKit address and port.
Does publishing port 8581 fix Homebridge discovery?
No. That port normally serves the management UI. Publishing it does not meet the official image’s host-network requirement.
Can Homebridge run in Docker Desktop on Mac or Windows?
The official image does not support Docker Desktop on Mac or Windows because of networking limitations. Docker Desktop’s host-network feature does not change that stated support. Use a documented native installation or the Homebridge virtual machine option.
Should I reset Homebridge when Apple Home cannot find it?
Check networking first. A reset changes pairing state without fixing blocked discovery. Save a backup before any reset.
Can I keep my configuration when changing network mode?
Yes. Preserve the same persistent storage mounted at /homebridge, and check the mapping before saving container changes.
Related: Homebridge backup and restore · self-hosting guides.
../self-hosting/ every Self-hosting guide