Recently I have started to do a bit of web development using Microsoft Visual Studio 2008. However, whenever I tried to view the site (which uses the ASP.Net Development Server as I am running it from the File System), I was always getting an “Unable to Connect” error in FireFox.
However, after doing some searching around using Google. I came across this blog which relates to Visual Studio 2005.
After searching the web many different ways I found out that Vista implements IPv6 (versus the old IPv4) and browsers may have issues resolving http://localhost. Since I use both Internet Explorer and Firefox for web development I decided to try just copying the URL the ASP.NET Development Server was using and pasting manually into both browsers and the same result…nothing, no error, nothing.
It turns out others have had this same problem and you can turn off IPv6 in Firefox pretty easily.
Disable IPv6 in Firefox
- Type about:config in the address bar and press Enter.
- Scroll down until you find network.dns.disableIPv6.
- Double-click on it to change its value to true.
- Restart Firefox.
After restarting Firefox I pasted the address used by ASP.NET Development Server into the Firefox address bar….and it worked like a charm. So, it seems IPv6 is the issue.
It worked for me 🙂