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.
- Open Firefox
- Type about:config in the address field
- Right click anywhere on the screen
- Click new > string
- Enter preference name as: network.security.ports.banned.override
- Enter string value as: 2049 (or whatever port number you want)
Who said that all these new security features are a nuisance?