I would expect questions about "ports already being in use" to be professional networking questions that would be better asked on Server Fault. However when I search for such questions here, I find a large number of them with extremely high vote score. Clearly the community has historically accepted (and even encouraged) such questions.
Before embarking on a crusade to rid Stack Overflow of this scourge and direct users to Server Fault, I wanted to check my assumptions. What criteria should be used for determining how on-topic such a question is?
- A few of these questions are asking about code they have written that gives an "port already in use" error. Of all these questions, these are most likely to on-topic, or not?
- Some of the questions are about encountering this problem when running development servers, maybe those are on-topic because they are about "tools for programmers?"
- Are they all on-topic because this is a general issue that programmers encounter?
Some top Stack Overflow "port already in use" questions with approximate vote score
- 3K How can you find out which process is listening on a TCP or UDP port on Windows?
- 1k How do I kill the process currently using a port on localhost in Windows?
- 600 Node / Express: EADDRINUSE, Address already in use - Kill server
- 300 Rails server says port already used, how to kill that process?
- 300 nginx - nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- 300 Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use
- 300 "Port 4200 is already in use" when running the ng serve command
- 300 Node.js Port 3000 already in use but it actually isn't?
- 300 Can two applications listen to the same port?
- 200 java.net.ConnectException: Connection refused
- 200 Django Server Error: port is already in use
- 200 XAMPP - Port 80 in use by "Unable to open process" with PID 4! 12
- 200 Freeing up a TCP/IP port?
- 100 How can I kill whatever process is using port 8080 so that I can vagrant up?
- 100 Why and how to fix? IIS Express "The specified port is in use"
- 100 Python: Binding Socket: "Address already in use"
- 90 TCPServer Error: Address already in use - bind(2)
- 80 Bind failed: Address already in use
- 50 Tomcat Server Error - Port 8080 already in use
- 40 Redis server port already in use
On Server Fault
SF has many related questions to which we could refer people, but in general the breadth and quality of such questions on SF pales in comparison to SO.
- Port 80 is being used by SYSTEM (PID 4), what is that?
- How do I tell what is running on which ports in Ubuntu?
- Port 53, address already in use in MAC
- How do I see if a port is in use on a windows machine?
- Run multiple servers on the same port
- Tomcat won't start - how to check that port 8080 is not in use
- Port is free, but Apache fails with: "Address already in use: make_sock: could not bind to address"
- IIS 7.0 will not release port 80 when service is stopped. Cannot run Apache on port 80