I suspect a program is listening on port
8000 on my machine.
When I run the following command, I get this error:
> python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] Address already in use
If I use another port (
8000 is the default), the web server runs fine.
If I run
wget localhost:8000 from the command line, it returns
404 Not Found.
What can I do (or what tools are available) to find what program is listening on port
8000, and from there where that program is configured?
Open your terminal and type as
that command will list you the application used by that port with PID. (If no results run via
sudosince your might have no permission to certain processes.)
For example, with port 8000 (
python3 -m http.server):
And port 22 (SSH):
Hope that helps.