Node.js Site Not Connecting

I am trying to start a Node.js website but I am unable to connect to it with a browser. It works if I run it on my local machine and connect via localhost but if I put it on a server and try to connect to it with the ip address that does not work. Its port forwarding port 3000 which I am using (I also tried port 80). Its running on Ubunut server. I am not sure if its the firewall or something else?

Just as normal I solved this problem on my own lol. Turns out I just needed to do:

sudo ufw allow 3000

1 Like

this is why i have an internal dev server that has no firewall on it :slight_smile: becasue no one likes dealing with things like this lol

1 Like