Docker Community Forums

Share and learn in the Docker community.

Unable to access containers from another computer on the same LAN


(Reallistic) #1

$ docker --version
Docker version 1.12.0, build 8eab29e

docker-compose file:

 couchpotato:
        image: linuxserver/couchpotato
        ports:
            - "0.0.0.0:5050:5050"

using defaiult network (which is bridged).

How can I make this container accessible from another computer on the same LAN?


(Robin Ong) #2

Hi reallistic,

Does the computer/server that runs your docker engine have it’s firewall enabled?
If so then you might have to set a rule to make it possible to ping the container and reach the couchpotato.

Below Powershell script will enable communication over port 5050 :

if (!(Get-NetFirewallRule | where {$_.Name -eq “Couchpotato 5050”})) { New-NetFirewallRule -Name “Couchpotato 5050” -DisplayName “Couchpotato 5050” -Protocol tcp -LocalPort 5050 -Action Allow -Enabled True}

Hope this helps.

Regards,
Nibor


(Reallistic) #3

The firewall was in fact the problem. After running those commands it worked!