How to Access Changedetection.io from My Local Network and Beyond with Docker?

0
17
Asked By CuriousCat42 On

I'm new to Docker and I have set up changedetection.io running in a Docker container at http://127.0.0.1:5000/. I want to be able to access it from anywhere within my local network and even outside if I open the port on my router. At the moment, I can only access it through 127.0.0.1:5000, and I'm unable to reach it using my host's local IP address (192.168.50.xxx:5000). Any advice on how to make this happen would be greatly appreciated!

4 Answers

Answered By HelpfulHolly On

If you're looking to access it publicly, remember to also configure your router to forward port 5000 to your Docker host's IP address, after you've made it bind to all IPs as suggested!

Answered By TechSavvy202 On

It looks like when you ran the Docker container, you used the command with `-p "127.0.0.1:5000:5000"`. This means it's only listening on the localhost interface, which is why you can’t access it from your local network using your host's IP. If you change it to `-p "5000:5000"`, then it will bind to all available IPs on your machine, including your local network address like 192.168.50.xxx. That should solve your problem!

Answered By DockerDude99 On

Sure! The command you need looks something like this:
docker run -d --restart always -p "5000:5000" -v datastore-volume:/datastore --name changedetection.io dgtlmoon/changedetection.io
This will expose changedetection on your local network.

Answered By NewbieNerd On

To help clarify, can you show how you ran the Docker container? It might be easier to spot any misconfigurations that way.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.