anyaudio / anyaudio-server

:musical_note: Simple server to search youtube and give direct audio download and stream links
91 stars 19 forks source link

Made default action of /api/v1/d to not write album art #77

Closed singhpratyush closed 8 years ago

singhpratyush commented 8 years ago
aviaryan commented 8 years ago

Set host to 0.0.0.0 for test on other devices.

Can you please elaborate this change. If the host is set to 0.0.0.0 , how can one access the running server locally (which url) ? postgres runs on 127.0.0.1:5432 so won't specifying postgres host as 0.0.0.0 have problems ?

singhpratyush commented 8 years ago

Can you please elaborate this change. If the host is set to 0.0.0.0 , how can one access the running server locally (which url) ?

Suppose your laptop has an IP 192.168.43.115 and your phone is also in the same network. In this case, you can simply go to 192.168.43.115:5000/ on your phone to get to home page which will be served from your laptop.

postgres runs on 127.0.0.1:5432

PostgreSQL listens on port 5432 (if default is not changed), so you can access the database from any machine in case you are running the server on other device which doesn't has the database but has the server code.