Cannot access Portainer container from external machine (works only with curl locally)

Hi all,

I installed Portainer CE on my Ubuntu server (49.12.11.7).
I run it with:

sudo docker run -d \
  -p 9443:9443 \
  --name portainer \
  --restart=always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v portainer_data:/data \
  portainer/portainer-ce:latest

Logs confirm it starts correctly and listens:

starting HTTPS server | bind_address=:9443

Local curl works on the server:

curl -k https://127.0.0.1:9443

Returns HTML.

But from my laptop (external machine):

curl -k https://49.12.11.7:9443

Just hangs (timeout).

Port check on server:

ss -tulnp | grep 9443
tcp   LISTEN 0      4096                 *:9443             *:*

So it’s definitely listening on all interfaces.


Question:

  • Why can I access 9443 locally but not from outside?
  • Do I need to configure Docker networking differently?
  • Or is this more likely a firewall / hosting provider security rule issue?

Docker is known to open firewall ports for published ports on the host. Thus, I would assume it’s related to hosting provider security.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.