I am trying to use port 80 for my application server, but when I perform netstat -aon
I get:
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
When I look up the process in task manager, it shows PID 4
is SYSTEM
, that's it. No extension... nothing. Just "SYSTEM
". What's going on here?
I'm afraid to end this process, what do I do?
UPDATE:
I've solved this through another Stack Overflow question, which had the solution to get IIS to stop listening on port 80 for a specified IP address.
WORKING SOLUTION TESTED:(WINDOWS 10)
There are many reasona for this, the one cause/solution i recommended is this:
OPEN YOUR WINDOW COMMAND WITH ADMINISTRATOR PREVILEGE THEN:
the above will agree to stop http service then:
the above will configure service to disable by default
IF ABOVE SOLUTION DOES NOT WORK FIND YOUR SPECIFIC CASE HERE:
SOURCE: http://www.devside.net/wamp-server/opening-up-port-80-for-apache-to-use-on-windows
RESTART YOUR WEB SERVER/XAMPP/APACHE AND DONE.
If you ever need to re-enable to default here is the command
sc config HTTP start= demand
the source of explanation is here http://servicedefaults.com/10/http/This wouldn't explain the PID side of things, but if you run Skype, it likes to use Port 80 for some reason.
The issue is how to free it up, simply use
https://stackoverflow.com/a/16243333/777982
An other service that could occupied the port 80 is BranchCache
services.msc showing it as "BranchCache"
or use the net command to stop the service like
net stop PeerDistSvc
Update:
PeerDistSvc is a service behind svhost.exe, to view svhost services type
tasklist /svc /fi "imagename eq svchost.exe"
A new service called "Web Deployment Agent Service" (MsDepSvc) can also trigger "System" with PID=4 to listen on port 80.
the IP adress is 0.0.0.0, state = LISTENING: means that port 80 is listening to all interfaces (not used)
How to read NETSTAT -AN results: