Score:0

Issues connecting to ubuntu server on the same network over certain ports

er flag

I recently started an ubuntu server and wanted to set up plex using docker compose. I started by following this guide: https://www.smarthomebeginner.com/docker-media-server-2022/ However when I got up to the section with radarr I noticed that I can't seem to connect to the website from a computer on the same network. I tried both using the host computers local ip and the public ip. Running

sudo docker ps -a

4d471a13e1a3   lscr.io/linuxserver/radarr:nightly    "/init"           About an hour ago   Up About an hour                      
0.0.0.0:7878->7878/tcp, :::7878->7878/tcp                       radarr

so it looks like the docker port is listening for port 7878

running

sudo ufw status

To                         Action      From
--                         ------      ----
25565                      ALLOW       Anywhere
7878/tcp                   ALLOW       Anywhere
7878                       ALLOW       Anywhere
22                         ALLOW       Anywhere
25565 (v6)                 ALLOW       Anywhere (v6)
7878/tcp (v6)              ALLOW       Anywhere (v6)
7878 (v6)                  ALLOW       Anywhere (v6)
22 (v6)                    ALLOW       Anywhere (v6)

so it looks like it should be allowed from my external computer

I then ran:

sudo lsof -n | grep TCP | grep LISTEN

docker-pr 152779 152780 docker-pr             root    4u     IPv4             801480           0t0        TCP *:7878 (LISTEN)
docker-pr 152779 152781 docker-pr             root    4u     IPv4             801480           0t0        TCP *:7878 (LISTEN)
docker-pr 152779 152782 docker-pr             root    4u     IPv4             801480           0t0        TCP *:7878 (LISTEN)
docker-pr 152779 152783 docker-pr             root    4u     IPv4             801480           0t0        TCP *:7878 (LISTEN)
docker-pr 152779 152784 docker-pr             root    4u     IPv4             801480           0t0        TCP *:7878 (LISTEN)
docker-pr 152779 152785 docker-pr             root    4u     IPv4             801480           0t0        TCP *:7878 (LISTEN)
docker-pr 152779 152786 docker-pr             root    4u     IPv4             801480           0t0        TCP *:7878 (LISTEN)
docker-pr 152787                              root    4u     IPv6             801485           0t0        TCP *:7878 (LISTEN)
docker-pr 152787 152788 docker-pr             root    4u     IPv6             801485           0t0        TCP *:7878 (LISTEN)
docker-pr 152787 152789 docker-pr             root    4u     IPv6             801485           0t0        TCP *:7878 (LISTEN)
docker-pr 152787 152790 docker-pr             root    4u     IPv6             801485           0t0        TCP *:7878 (LISTEN)
docker-pr 152787 152791 docker-pr             root    4u     IPv6             801485           0t0        TCP *:7878 (LISTEN)
docker-pr 152787 152792 docker-pr             root    4u     IPv6             801485           0t0        TCP *:7878 (LISTEN)
docker-pr 152787 152793 docker-pr             root    4u     IPv6             801485           0t0        TCP *:7878 (LISTEN) 

I also ran

netstat -tln | grep 7878

tcp        0      0 0.0.0.0:7878            0.0.0.0:*               LISTEN
tcp6       0      0 :::7878                 :::*                    LISTEN

so I can't figure out why my external computer on my network can't connect. When I try curling from my host machine it works, both using localhost and the local ip, but not the public ip

THIS IS FROM THE HOST MACHINE:

curl localhost:7878
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="theme-color" content="#3a3f51"/><meta name="msapplication-navbutton-color" content="#3a3f51"/><meta name="description" content="Radarr"/><link rel="apple-touch-icon" sizes="180x180" href="/Content/Images/Icons/apple-touch-icon.png?h=QMW7w5FhldXR090sP7kDlQ"/><link rel="icon" type="image/png" sizes="32x32" href="/Content/Images/Icons/favicon-32x32.png?h=bUxyGU7P9+rZb2XbRYUb6Q"/><link rel="icon" type="image/png" sizes="16x16" href="/Content/Images/Icons/favicon-16x16.png?h=GmD3+SimWfdjIE1SWzz5DQ"/><link rel="manifest" href="/Content/Images/Icons/manifest.json?h=ohuo6hJigkcQv3FKGxqqjg" crossorigin="use-credentials"/><link rel="mask-icon" href="/Content/Images/Icons/safari-pinned-tab.svg?h=TVr3+MxG/7RUCZrNbIolsA" color="#00ccff"/><link rel="shortcut icon" type="image/ico" href="/favicon.ico"/><meta name="msapplication-config" content="/Content/Images/Icons/browserconfig.xml"/><link rel="stylesheet" href="/Content/Fonts/fonts.css?h=mBv1x1/yHnvphLclzeQIBA"><title>Radarr</title><style>.root {
        overflow: hidden;
        height: 100%; /* needed for proper layout */
      }

      @media only screen and (max-width: 768px) {
        .root {
          display: flex;
          flex-direction: column;
          min-height: 100%;
          height: auto;
        }
      }</style><script defer="defer" src="/vendors.js?h=dPspGxSjngeC99722Fjl3w"></script><script defer="defer" src="/index.js?h=LpIAZrRLe8uNDiTtqSyeqQ"></script><link href="/Content/styles.css?h=+SnBcJ1jjOYb/a3qn19DyQ" rel="stylesheet"></head><body><div id="portal-root"></div><div id="root" class="root"></div></body><script src="/initialize.js"></script></html>

THIS IS FROM THE HOST MACHINE:

curl 192.168.1.234:7878
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="theme-color" content="#3a3f51"/><meta name="msapplication-navbutton-color" content="#3a3f51"/><meta name="description" content="Radarr"/><link rel="apple-touch-icon" sizes="180x180" href="/Content/Images/Icons/apple-touch-icon.png?h=QMW7w5FhldXR090sP7kDlQ"/><link rel="icon" type="image/png" sizes="32x32" href="/Content/Images/Icons/favicon-32x32.png?h=bUxyGU7P9+rZb2XbRYUb6Q"/><link rel="icon" type="image/png" sizes="16x16" href="/Content/Images/Icons/favicon-16x16.png?h=GmD3+SimWfdjIE1SWzz5DQ"/><link rel="manifest" href="/Content/Images/Icons/manifest.json?h=ohuo6hJigkcQv3FKGxqqjg" crossorigin="use-credentials"/><link rel="mask-icon" href="/Content/Images/Icons/safari-pinned-tab.svg?h=TVr3+MxG/7RUCZrNbIolsA" color="#00ccff"/><link rel="shortcut icon" type="image/ico" href="/favicon.ico"/><meta name="msapplication-config" content="/Content/Images/Icons/browserconfig.xml"/><link rel="stylesheet" href="/Content/Fonts/fonts.css?h=mBv1x1/yHnvphLclzeQIBA"><title>Radarr</title><style>.root {
        overflow: hidden;
        height: 100%; /* needed for proper layout */
      }

      @media only screen and (max-width: 768px) {
        .root {
          display: flex;
          flex-direction: column;
          min-height: 100%;
          height: auto;
        }
      }</style><script defer="defer" src="/vendors.js?h=dPspGxSjngeC99722Fjl3w"></script><script defer="defer" src="/index.js?h=LpIAZrRLe8uNDiTtqSyeqQ"></script><link href="/Content/styles.css?h=+SnBcJ1jjOYb/a3qn19DyQ" rel="stylesheet"></head><body><div id="portal-root"></div><div id="root" class="root"></div></body><script src="/initialize.js"></script></html>

THIS IS FROM THE CLIENT (EXTERNAL) MACHINE:

curl 192.168.1.234:7878
curl : Unable to connect to the remote server
At line:1 char:1
+ curl 192.168.1.234:7878
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

What is extra odd is that I am able to connect to the host server over port 22 for ssh from an external client machine, and I am able to connect over port 25565 for a minecraft server I'm running. Any suggestions?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.