t0mer / broadlinkmanager-docker

Broadlink Manager is a python based project that allows you to contorol your broadlink devices. Discover, Leran and send command in a very easy way
Apache License 2.0
261 stars 56 forks source link

Unable to find devices using Virtualbox and docker #10

Open clabnet opened 4 years ago

clabnet commented 4 years ago

Hi t0mer, using VirtualBox as Windows host, and Ubuntu 20.04 as guest,

I have successfully installed broadlink-manager as docker container : docker run -d -p 7020:7020 --name broadlinkman techblog/broadlinkmanager

then opening dashboard : http://ip-virtualbox:7020 on device list page "Searching For Devices" cannot reach any device.

Also using this command, the same result. docker run -d --network host --name broadlinkman techblog/broadlinkmanager

I know, you says: "Broadlink is using MAC Address to communicate with the device and MAC adress cannot be bridged between networks." and also "You must use host network mode because Broadlink Manager is working with MAC address to communicate with broadlink devices and MAC address is not working under bridge mode."

But how to solve this use case ?

Thank's

rabin-io commented 4 years ago

@clabnet is your VM interface is in bridge mode ? (by default VirtualBox will NAT networks)

G4ZRT commented 3 years ago

Hi,

As above I cannot find devices running docker on windows 10. Manually adding doesn't work either.

Using this I can access via 7020:

container run -d --name bm1 --publish 7020:7020 bm:latest

but not when using:

container run -d --name bm1 --network host bm:latest

Any suggestions?

Mark