Solution to the Firefox port problem

Oct 8, 2006

The built in webserver in Visual Studio 2005, formerly known as Casini, uses a dynamic or static port on the localhost machine (e.g. http://localhost:2049/default.aspx). It is dynamic by default, but you can make it static if you choose. That works very well except when you try it in Firefox. It simply gives you this response:

This address uses a network port which is normally used for purposes other than Web browsing. Firefox has cancelled the request for your protection.

It does that by default whenever you use a port other than port 80 – the default website port. It took me a lot of digging to find the solution and here it is.

  1. Open Firefox
  2. Type about:config in the address field
  3. Right click anywhere on the screen
  4. Click new > string
  5. Enter preference name as: network.security.ports.banned.override
  6. Enter string value as: 2049 (or whatever port number you want)

Who said that all these new security features are a nuisance?

* Only $4.95/month ASP.NET & Windows 2008 + IIS 7 Hosting! FREE SQL Included

Comments (1) -

Jesper
Jesper
10/8/2006 3:23:16 PM #

Have you tried mailing, using Outlook? That is a bloody nuisanse as well. When you try sending the mail, it asks the user to confirm by clicking ok.  And there is no setting to make it stop - you can download some 3 party, 3 rate hack that automatically clicks the OK-button, but solutions like that utterly annoy me. I've simply stopped using the Outlook objects. Used to be real easy; create you mail object, fill in the required fields and away you go.

Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.