Port 3000 suddenly stopped working, thoughts?

March 22, 2016 3.9k views
Ruby on Rails Networking Ubuntu

I’ve been running a rails server (in dev mode) on a server for the past week. Everything has been fine, been accessing it through port IP:3000 without any problems from the start. Now, I get a ERRCONNECTIONREFUSED when I try to reach it from my local machine. I can’t think of anything that would have changed. From what I know, I shouldn’t have to explicitly open port 3000 on DO.

I’ll also note that if I VNC into the server, and try to reach localhost:3000, I get the page right away. Any thoughts?

1 Answer

Use lsof -i :3000 -n to find out whether it’s listening, and if so, whether its bound to localhost or not.

Have another answer? Share your knowledge.