Question

Port 3000 suddenly stopped working, thoughts?

Posted March 22, 2016 4.6k views
Ruby on RailsUbuntuNetworking

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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

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

Submit an Answer