Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I cannot host on port 80, because there is an application on the background, which hosts on port 80. How do I find out which program it is?

share|improve this question
    
Port 80 is http port by default. So first of all, close all programs that use http (such as browsers, IM software and so on). Also I wouldn't recomend using this port in your program (unless it's a browser or smtg like it). –  SEARAS Jun 22 at 18:10
1  
@SEARAS Let's not confuse the source and destination ports. Browsers use 80 port as destination port. –  STTR Jun 22 at 18:52
1  
On a standard home computer it's often Skype, so before attempting any solutions listed below I suggest you check that first. –  André Daniel Jun 22 at 21:13

2 Answers 2

up vote 7 down vote accepted

Get local application ProcessID use port 80:

netstat -aon | findstr "LISTENING" | find /i ":80" | more

var 2:

netstat -aon | find /i ":80" | more

Get application command line:

Wmic process where (ProcessId=<you application ProcessID>)  get Commandline, ProcessId

Get service command line:

wmic Service where (ProcessID=<you application ProcessID>) Get Caption, Name, StartMode, State, PathName, ProcessId,  StartName

Portqry 2.0 test port 80:

Portqry -local -wport 80 | findstr "LISTENING"

Portqry Support Tools test port 80 UDP and TCP:

Portqry -n 192.168.20.10 -p BOTH -e 80 -i -s

GUI TCPView v3.05:

TCPView v3.05

cmd: cmd

Far manager: Far manager

Far manager get Service command line, PID:

Far manager get Service command line, PID

share|improve this answer
1  
It's linux terminal command. I tried it in cmd.exe, but windows can't find the command –  Iter Ator Jun 22 at 16:30
1  
Not. Cmd and Far Manager at Microsoft Windows. See pic. –  STTR Jun 22 at 16:39
1  
@IterAtor both netstat and wmic commands are working in cmd –  SEARAS Jun 22 at 18:15

Open command promt and type

netstat -a -n -o

that will show you all open ports and the process IDs associated with them. There you can find the PID which is responsible for port 80 being taken and find that PID in Task Manager.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.