question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to have homebridge listen on multiple network interfaces?

See original GitHub issue

Describe Your Problem:

I have most of my IOT devices on a separate ‘guest’ WiFi (192.168.1.X) and just 2 on my main WiFi + wired network (192.168.1.Y) . Homebridge is running on a raspberry pi 4 and the raspberry pi 4’s eth0 is connected to the main network and wlan0/WiFi is connected to the guest network. Right now Homebridge listens only on eth0 and doesn’t see most of my devices. How do I configure Homebridge to use both network interfaces (to work with devices on both networks) ?

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge  <snip for privacy>",
        "username": "<snip for privacy>",
        "port": 51620,
        "pin": "<snip for privacy>"
    },
    "accessories": [
       <snip for privacy>
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
       <snip for privacy>
    ]
}

Environment:

HomeBridge v1.1.1 Node.js Version v12.18.2, Npm Version v6.14.6 Operating System**: Raspbian GNU/Linux 10 (buster) Process Supervisor**: hb-service

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
oznucommented, Jul 29, 2020

I think, based on a chat I’ve had with @Supereg, at some point before 1.2.0 is released we will be allowing you to define which interface you want to listen on.

eg.

"mdns": {
   "interface": "eth0"
}

This will also accept an IP address too, for backwards compatablity with Homebridge < 1.0.0:

"mdns": {
   "interface": "192.168.1.1"
}
1reaction
Superegcommented, Nov 1, 2020

Just to have it updated. This feature was added in the 1.3.0 beta using the new bridge.bind config option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I need help with changing the default network interface - Reddit
You can test this by making sure you can access the Homebridge UI from another local device, and making sure you can pair...
Read more >
5 Tips That Will Make You a Homebridge Pro - YouTube
In this video I'll give you 5 Essential tips that you NEED to do after ... What You'll Need 01:41 - Tip 1...
Read more >
homebridge-nilan - npm
Nilan Homebridge Plugin. This plugin enables Apple HomeKit support for certain Nilan devices via Homebridge. NPM Version Build and Lint.
Read more >
Homebridge server and smarthome devices on VLANs
We run a Homebridge server on the main LAN network 192.168.1.0/24 ... will block all incoming connections that originate on a different network....
Read more >
Bridge Network Interfaces on Ubuntu 22.04 | Christopher Hart
Linux hosts can bridge two network interfaces together such that they ... We can confirm that H1 and H2 do not have connectivity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found