# Prometheus can not access from another node in Docker Swarm

**URL:** <https://discuss.prometheus.io/t/prometheus-can-not-access-from-another-node-in-docker-swarm/3175>\
**Category:** Prometheus server\
**Created:** [October 29, 2024, 3:26pm UTC](https://discuss.prometheus.io/t/prometheus-can-not-access-from-another-node-in-docker-swarm/3175 "2024-10-29T15:26:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twoNDchances](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/twondchances/32/1065_2.png) [@twoNDchances](https://discuss.prometheus.io/u/twoNDchances)\
**Post date:** [October 29, 2024, 3:26pm UTC](https://discuss.prometheus.io/t/prometheus-can-not-access-from-another-node-in-docker-swarm/3175/1 "2024-10-29T15:26:23Z")

</div>

Hey guys, I am deploying Prometheus on Docker swarm with a compose file, when a service is deployed to Docker swarm with multiple nodes, no matter which node is accessed, the service can be accessed, but I tried to access Prometheus service with port 9090 and it failed, but it can be accessed when I type the correct IP address of the node holding the service. This did not happen before, and I also tried again with a small test with NGINX, everything was fine until using Prometheus, is that the default configuration?

---

<div class="post-metadata">

**Author:** ![twoNDchances](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/twondchances/32/1065_2.png) [@twoNDchances](https://discuss.prometheus.io/u/twoNDchances)\
**Post date:** [October 29, 2024, 3:48pm UTC](https://discuss.prometheus.io/t/prometheus-can-not-access-from-another-node-in-docker-swarm/3175/2 "2024-10-29T15:48:20Z")

</div>

I just boot another server and it worked! 🙂
