ahodges9 / LedFx

LedFx is a network based LED effect controller with support for advanced real-time audio effects! LedFx can control multiple devices and works great with cheap ESP8266 nodes allowing for cost effectvice syncronized effects across your entire house!
MIT License
385 stars 91 forks source link

Access the GUI from another PC on the lan? #48

Closed mythral0 closed 4 years ago

mythral0 commented 4 years ago

Hi, really cool project. I've completed installation on Debiun 10, when I start it, it starts the web server, but on address 127.0.0.1, how do I get it to bind to a different interface?

mythral0 commented 4 years ago

Apologies, I've figured it out.

sladaar commented 4 years ago

sorry, how did you manage to access? i tried the ip:8888 but doesn't work! Thanks!

Codename-11 commented 4 years ago

@sladaar when you run the command ledfx or ledfx --open-ui notice the default is to only host the webserver locally. i.e 127.0.0.1:8888. If you notice as well, the output of the command shows where the config file is loaded from, for me it was /home/pi/.ledfx. Open that file in your preferred text editor sudo nano /home/pi/.ledfx/config.yaml, and change the host address to ether your IP or 0.0.0.0, save and re-run the ledfx. You can now access the web dashboard from other devices on your LAN.

sladaar commented 4 years ago

many many thanks @Tim-Dixon , it works flawlessly and now i can control through the web interface in my domotic environment! Great! Have a nice day!

wessi86 commented 4 years ago

I've got the same issue. I added host: 0.0.0.0 to the config.yaml, but it is still starting the webinterface at http://127.0.1.1:8888.

douglasbaptistasenai commented 4 years ago

Also here. I put the host, changed the port and still does not load the web interface.

http://127.0.1.1:8383/ http://127.0.0.1:8383/ http://localhost:8383/ http://127.0.2.10:8383/

Started webinterface at http://127.0.2.10:8383/

My config now

dev_mode: false
devices: {}
max_workers: 10
host: 127.0.2.10
port: 8383
presents: {}
XelandOne commented 4 years ago

Strange, I´ve got it working by using the devices IP instead of 0.0.0.0: dev_mode: false devices: {} max_workers: 10 port: 8888 presents: {} host: 192.168.0.107

Started webinterface at http://192.168.0.107:8888

Codename-11 commented 3 years ago

@douglasbaptistasenai did you try host: 0.0.0.0 or host: your-ipv4 (i.e: 192.168.1.10)? The 127 is your localhost internal network and running anything on that subnet will only be available from that device. Putting it on 0.0.0.0 or your host's LAN IP opens up the port, 8383 in your case, to other devices on your LAN from your host's IP.