How to find occupied port number
I was installing Apache 2.2.6 on my machine today and when I tried to run Apache, it says it has problem binding to the address 0.0.0.0:80. I have run into this issue in the past so this doesn't cause as much panic this time around. Basically, you just need to find out what program is using port 80, unblock it and you are set to go.
Here is what I usually do:
1) Run command prompt
2) Type netstat -ano
3) Look for the line that says 0.0.0.0:80 in the Local Address column
4) Look at the PID in the last column. In my case, it says 3076
5) Fire up your task manager, click Processes tab
6) If you don't see the PID column in the listbox, click View->Select Columns and check PID (Process Identifier)
7) Now you should see the PID in the listing. Search for the row that has PID 3076, in my case, the image name that takes up port 80 is skype.
8) Quit skype, re-run Apache (no more bitching about port being taken by someone), relaunch skype. Everything is good to go.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home