←back to thread

I can see your local web servers

(http.jameshfisher.com)
652 points jamesfisher | 6 comments | | HN request time: 0.619s | source | bottom
1. jand ◴[] No.20028531[source]
Funny enough, the site is reporting port 3000 to be running a web server. It is not - according do nmap and my knowledge.

Any ideas on this?

replies(2): >>20028549 #>>20028801 #
2. shakna ◴[] No.20028549[source]
If you're on Linux, BSD and macOS, you can run:

    sudo lsof -i | grep 3000
To try and see if a process has claimed the port.

On Windows:

    netstat -ab
I've forgotten so much Windows I don't know how to filter the result, but it'll give you a list of ports and processes.
replies(1): >>20030061 #
3. IanCal ◴[] No.20028801[source]
If like me you saw the bright red text "If you see any results like localhost:3000 is available!" as meaning :3000 was actually available, it's just an example. The yellow box above seems to be where the results would actually be.
replies(1): >>20031296 #
4. unpixer ◴[] No.20030061[source]
Some BSD systems won't have lsof out of the box, in which case fstat/netstat will give you the results you want.
5. jand ◴[] No.20031296[source]
I must admit, it was exactly this. I read the text without using my brain properly.

Please accept my sincere apologies.

replies(1): >>20033390 #
6. IanCal ◴[] No.20033390{3}[source]
I did exactly the same thing and spent too long running various things to find out what on Earth was using the port! Only reason I had a good guess at what it may have been.