How do I find which program is using port 80 in Windows? [duplicate]

Type in the command:

netstat -aon | findstr :80

It will show you all processes that use port 80. Notice the pid (process id) in the right column.

If you would like to free the port, go to Task Manager, sort by pid and close those processes.

a displays all connections and listening ports.

o displays the owning process ID associated with each connection.

n displays addresses and port numbers in numerical form.

Leave a Comment