Port 80 in use by “Unable to open process” with PID 4 Error

Submitted by: 
Visitors have accessed this post 540 times.

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)
  • Skype

Microsoft Internet Information Server

To stop IIS server, type the following in the command line:

  1. net stop w3svc
  2. 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.

Skype

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:

Skype Uncheck Use port 80

Other option

Go to Xampp control panel and click Netstat. See screenshot below:

Xampp Netstat

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


Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.