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
788 stars 43 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

Closed EricChan1989 closed 1 month ago

EricChan1989 commented 1 month 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 1 month 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 1 month ago

thank you very much!!

cwilvx commented 1 month ago

Closing as resolved. Feel free to reopen if you still have the same issue.

@EricChan1989