Something was listening on Port 80 and preventing my local webserver from working on my Windows XP laptop. Here’s how I tracked it down: Hit Windows Key + R, which brings up the Run dialog, then type “cmd” and press enter. You’ll be on a command line.
Type netstat -a -o -n
and it’ll bring up a network list, I looked for one with 0.0.0.0:80 as the local address and noted down the PID of 2600. To find out what PID 2600 was (hopefully not a trojan) I typed tasklist /FI "PID eq 2600"
which means show me a tasklist, and filter (/FI) where the PID (process ID) is equal to 2600. This told me that it was Skype.exe that was running something on port 80 locally.
Finally I killed it using taskkill /PID 2600
and Skype was gone and I was able to start up my web server locally and do a little bit of offline coding. Windows actually has a pretty handy command line once you learn your way around it, it’s just the syntax is so inelegant to me after spending all day on Linux terminals. A final tip, you can type /?
after most Windows commands to get the equivilent of a man page for that command.
Now for why Skype was listening or port 80 on localhost and serving blank pages… Ihave no idea.