Unable to access containers from another computer on the same LAN

$ 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?

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

1 Like

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