How to find out which process is using localhost:80?

flyingfoxlee picture flyingfoxlee · Jun 8, 2013 · Viewed 17.1k times · Source

I'm using linux mint xfce edition, my localhost:80 was used by some program but I don't which one, when I open firefox and visit localhost:80, it says

It works! This is the default web page for this server. The web server software is running but no content has been added, yet.

I've tried to use lsof -i @localhost:80, but it returns nothing.

Answer

zeropol picture zeropol · Jun 8, 2013

netstat -anpt | grep :80 as root user should list process using port 80. With your web browser closed it can help you identify the process.