Port 80 in use by “Unable to open process” with PID 4 Error
Port 80 in use is a common problem encountered by programmer who used apache. There are so many causes of this problem and this is the reason why I write this article.
You encountered this problem because:
You use Xampp, Wamp and other packages that includes apache as a web server and other process is using port 80.
Here’s the following guide to resolve this issue:
A common application that used port 80 are:
- Microsoft Internet Information Server
- SQL Server Reporting Services
- Web Deployment Agent Service (Microsoft-HTTPAPI/2.0)
Microsoft Internet Information Server
To stop IIS server, type the following in the command line:
- net stop w3svc
- net stop iisadmin
You can also go to Administrative Tools under Control Panel and search for Internet Information Services (IIS)
SQL Server Reporting Services
To stop SQL Server Reporting Services, go to Control Panel >> Administrative Tools >> Services. You can double click on it and select Manual in the Startup Type.
Web Deployment Agent Service (Microsoft-HTTPAPI/2.0)
To stop Web Deployment Agent Service, go to Control Panel >> Administrative Tools >> Services. You can double click on it and select Manual in the Startup Type.
To stop Skype from using port 80 and port 443, open Skype >> Tools >> Options >> Advanced >> Connection and uncheck “Use port 80 and 443 for additional incoming connections”.
See screenshot below:
Go to Xampp control panel and click Netstat. See screenshot below:
You can also filter which PID are using port 80 by typing the following in the command line (CMD).
netstat -o -n -a | findstr 0.0:80