swingmx / swingmusic

Swing Music is a beautiful, self-hosted music player for your local audio files. Like a cooler Spotify ... but bring your own music.
https://swingmx.com
MIT License
750 stars 41 forks source link

Web server binded to 127.0.0.1 instead of 0.0.0.0, which makes it not accessible from LAN #228

Open EricChan1989 opened 22 hours ago

EricChan1989 commented 22 hours ago

Dear Developer,

I tested with your latest windows build, and found that the related web server is not accessible from LAN despite I allowed port 1970 in Windows Firewall or even any ports and any protocols for this exe file. I tried with netstat and see port 1970 is binded to 127.0.0.1, which is the root cause. Could you please help to fix this?

Thanks a lot.

cwilvx commented 11 hours ago

Hi @EricChan1989

Thanks for using Swing Music. You can bind the server to "0.0.0.0" by using the --host flag when launching the server via the command line.

./swingmusic.exe --host 0.0.0.0 --port 1970

You can check out other flags in the documentation.

EricChan1989 commented 11 hours ago

thank you very much!!