Score:0

Can SSH but cannot connect via HTTP

cn flag

I am trying to set up a web application on my server. I can ssh to the server but when I connect via any browser (using IP or URL) I get no response. Running sudo netstat -tulpn | grep LISTEN gives the following result

tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      31747/docker-proxy  
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      30899/docker-proxy  
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      1441/systemd-resolv 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      27775/sshd          
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      9949/postgres       
tcp        0      0 127.0.0.1:35757         0.0.0.0:*               LISTEN      1481/containerd     
tcp6       0      0 :::8080                 :::*                    LISTEN      31754/docker-proxy  
tcp6       0      0 :::80                   :::*                    LISTEN      30906/docker-proxy  
tcp6       0      0 :::22                   :::*                    LISTEN      27775/sshd          
tcp6       0      0 ::1:5432                :::*                    LISTEN      9949/postgres

Which looks fine to me although I do not have a lot of experience with netstat. The react application runs on port 80, the server on port 8080, both in a docker. When I ssh to the server and try curl localhost:80 or curl localhost:8080 respectively the proper pages are returned. Only when I connect from the outside, I cannot reach my services. What are the best ways to debug this?

in flag
A timeout usually points toward a firewall issue.
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.