Docker Community Forums

Share and learn in the Docker community.

Webpage only availble on localhost, not on network


(Futurecow) #1

I’m running a container with the following options:
docker create --name sonarr -p 8989:8989 linuxserver/sonarr

docker container ls:
da62a813ed7c 23b6a4861c66 "/init" 4 months ago Up 2 hours 0.0.0.0:8989->8989/tcp sonarr

netstat -tunlp | grep 8989:
tcp6 0 0 :::8989 :::* LISTEN -

When i go to localhost:8989 i can see the webpage on my server. When i go to 192.168.1.2:8989 on another PC, i don’t get the webpage. Even on the server, i can’t get to 192.168.1.2:8989

Output of docker inspect: https://pastebin.com/GZFeQJ2v


(Taigrr) #2

Whose IP is 192.168.1.2 ? The container or the host?

That looks like the container’s IP to me, you’ll want to use the host’s IP.