This article explains how you can find out which program or service occupies which port. This is often necessary, for example, to set up the web service or in the case of error messages regarding doubly assigned ports.
- Run the "cmd" command.
- Type "netstat -ano" followed by ENTER.
- optionally, you can also use "|" (pipe) followed by the "find" command to define the result more precisely, e.g. to search for port "8080": netstat -ano | find "8080".
- Search for the port in the "Local Address" column and note down the corresponding "PID".
- Go to Processes/Services in the Task Manager (for processes, select "Show processes of all users").
- "Select View\Columns -> Enable PID (Process ID)".
- Now you can see which program or service uses which PID and you know what occupies the corresponding port.
In the example you can see that the program "MetaServer.exe" listens to port 8080 for IPv4 and IPv6.