3

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?

3
  • 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).
    – Searush
    Jun 22 '14 at 18:10
  • 1
    @SEARAS Let's not confuse the source and destination ports. Browsers use 80 port as destination port.
    – STTR
    Jun 22 '14 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.
    – user256743
    Jun 22 '14 at 21:13
8

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:

Screenshot
(Click image to enlarge)

cmd: cmd

Far manager: Far manager

Far manager get Service command line, PID:

Far manager get Service command line, PID

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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