morpheus65535 / oscarr

Oscarr is a dashboard application for users of Plex, Emby, Sonarr, Radarr and Bazarr. It gives you and overview of your media management software.
GNU General Public License v3.0
57 stars 12 forks source link

No access outside of local network #12

Open thicklord opened 4 years ago

thicklord commented 4 years ago

Not sure if it's my configuration (pretty sure it isn't) but I can't access Oscarr from outside of my network. At first, I thought it was because I was using a different port mapping (6565:5656) but I can access it from my LAN using my machine's IP, and the port works.

Attached is my docker-compose file: oscarr-docker-compose.txt

morpheus65535 commented 4 years ago

Did you set Oscarr listening IP to something else than 0.0.0.0?

thicklord commented 4 years ago

I hadn't before, but I did try changing it. The only way I can access the WebUI is if the port is set to 0.0.0.0. I tried changing it to the local IP of the server it's running on; no dice. I also tried to set it to 127.0.0.1, that didn't work either. For both of those IP's, the WebUI wouldn't come up at all. I had to edit the oscarr.db file manually to set the IP back to 0.0.0.0. This isn't a huge deal but access outside of my network would be nice but not a deal-breaker.

Let me know if you want me to try anything else to try and resolve this.

morpheus65535 commented 4 years ago

When using docker, you cannot bind the ip of the host as this ip isn’t exposed to the container that have is own private ip.

If you use 127.0.0.1, Oscarr will only listen to request to 127.0.0.1 which means you need to call it from inside the container.

With 0.0.0.0, Pscarr with listen on any ip/interface so you should be good.

If it doesn’t work, it’s an issue on your side. Probably port redirection/NATting in your router.

thicklord commented 4 years ago

I see what you’re saying about the IP access, that makes sense. What doesn’t make sense is that all of my other containers with similar configurations and mapped ports are all accessible from anywhere, including Bazarr. I’ll take another look at my network and port forwarding rules and see if I’ve overlooked anything.