What Was I Thinking?

Follies & Foils of .NET Development
posts - 95 , comments - 352 , trackbacks - 0

My Website (ports) Have Been Hijacked!

This is one of the scary problems that turns out to have a pretty easy solution.

I tried to view one of my websites hosted by IIS on my primary workstation and the site wouldn’t render.   I checked IIS Admin and the site was there, but I couldn’t access it on either port 443 or port 80.

In reviewing the event log I found the following entry:

The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://x.x.x.x:80/ for site 1. The site has been disabled. The data field contains the error number

I disabled the IIS Service (issued Net Stop W3svc from an admin command prompt) and then scanned for anything listening on port 80.

C:\Users\cdarrigo>netstat -ano |findstr 80
  TCP                 LISTENING       3124

This confirmed that something had hijacked my ports.  I had another process that was listening on port 80 and it was preventing IIS from serving up my site.   A quick phone call to a friend taught me that the last number shown above (3124) is the process id of the process that's listening on the port.  So whatever process had PID 3124 had to be stopped.

I scanned my process list, and determined it was, much to my surprise, Skype.  I exited the Skype application and restarted the IIS service, then manually restarted the web site.  This time, browsing to my site resulted in successfully viewing my site.

So why was Skype listening on those ports?  A quick Google search revealed the answer:

“Skype listens on those ports to increase quality.” really? “you might become a supernode if those ports are open.” No thanks.  I’m not sure how accurate those statements are, but I want to disable this behavior in Skype none the less.

Fortunately Skype provides a configuration option to turn off this behavior.  

  1. Launch Skype and log in. 
  2. From the Tools menu, select Options
  3. Select the Advanced options and then Connection
  4. Uncheck the box Use Port 80 and 443 as alternatives for incoming connections


Back to development bliss.

Print | posted on Monday, March 15, 2010 9:09 AM | Filed Under [ Visual Studio General Geekiness ]


No comments posted yet.
Post A Comment

Powered by: