homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.59k stars 243 forks source link

Setting MAC address on net0 interface #567

Closed jwilson2899 closed 5 months ago

jwilson2899 commented 5 months ago

Current Situation

I have successfully setup Homebridge on my Truenas Scale machine, and everything is running as expected. My question is that there are 2 interfaces. The one on net0, which is the one that actually talks to my network is the one I'm interested in. Since it uses DHCP, it's pulling the address from my router, which is fine. The problem is that every time the container restarts, this interface gets a new MAC address, which causes the router to issue it a different IP address. This makes it a bit hard to keep up with which address I can currently access the Homebridge GUI from when I need to update plugins. Is there some way I can make this interface have the same MAC address every time? Thanks in advance for your help.

Docker Config

N/A

Logs

No response

Host Operating System

Other (specify in description)

Host Architecture

x86_64 / amd64

NorthernMan54 commented 5 months ago

This is more of a docker question

But if you use the 'Discovery' app, you should be able to determine the .local address used by the homebridge instance. And you can use that for access instead of the IP.

ie image

url would be http://hue-b509.local:8581

jwilson2899 commented 5 months ago

I fixed by changing the setting in step 5 under the instructions from DHCP to a static IP. Now the container starts each time with a fixed IP address, so I know where to access it.