Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 17923  / 2 Years ago, fri, june 3, 2022, 1:25:37

I run a rails development environment, which runs a server I can access at localhost:3000. I was doing this again today, and went to restart the webserver and it started timing out.



After some time I ran nmap localhost, and realised that 'ppp' is running on port 3000:



3000/tcp open  ppp


I've never used PPP, and it's stopping me getting my work done. I tried service pppd-dns stop, which appears to have no effect. I even tried sudo apt-get remove ppp, but the port is still open, and I still can't start my rails server.


More From » networking

 Answers
3

Well, @whiskers75 answer seemed to work at first, but I've now witnessed the behaviour again and ppp was still not installed - it must have been the reboot that did the trick before.



I used netstat -tulpn to check which processes where listening to which ports, and it turns out that nmap was giving misleading information - it wasn't ppp, but ruby. A rogue ruby process had been left over by a dead rails instance and was still listening to port 3000.



killall ruby did the trick, the port was freed and I could restart my rails server.


[#36490] Saturday, June 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eballxeye

Total Points: 370
Total Questions: 91
Total Answers: 139

Location: Suriname
Member since Sat, Jan 1, 2022
2 Years ago
;