File load times for Firefox 9.0.1 are about 6 seconds (page has some php code) but IE is instant. If I change the link from localhost to 127.0.0.1 Firefox will load instantly as well.
I've made the changes recommended here
I've uncommented out the following line in my C:\WINDOWS\system32\drivers\etc\hosts file:
127.0.0.1 localhost
But no luck.I've tried seting network.dns.disableIPv6 to true with no luck.
Any other ideas?
Seems like a problem with you browser's DNS settings.
Try using this DNS service (it's free)
https://store.opendns.com/setup/
Also clear your DNS cache in firefox:
Mozilla Firefox (Win & Mac)
Go to the Tools menu, select Clear Recent History and check all boxes. Under Time range to >clear select Everything (except passwords, if desired) and click Clear Now.
And maybe also on your windows:
Run->cmd and type in: ipconfig /flushdns
For Firefox 94:
Including answers mentioned above: When using Firefox in private mode, try disabling private mode.
Set "Always create chronic" (1st Option) in Settings > Privacy & Security > Chronic.
Related
I published my project's code on development server. Before publishing it, I created a website on IIS it's link 192.168.1.133:601 (localhost)
But on chrome get ERR_UNSAFE_PORT error.
Tried Explorer and Edge browser therefore it works.
Actual Result: On chrome get ERR_UNSAFE_PORT
Expected Result: Website works.
After my long researches, I found some port list this is restircted by Google.
Thus, I realized that, my port in the list then I changed the port.
Link is https://chromium.googlesource.com/chromium/src.git/+/refs/heads/master/net/base/port_util.cc
In July 2021, I encountered this problem and most of the standard fixes had already become obsolete (especially the one where you open 'Chrome Properties', since I use a Macbook.)
This is a MacOS-specific workaround, and here are the steps:
First, locate the Chrome icon in your 'Applications' folder, then right-click to select 'Show Package Content'. Double-click, to enter into the sub-folder. Select 'MacOS'. Inside, you'll see the Google Chrome executable. Rename it 'portfix', then open up a terminal.
/Applications/Google\ Chrome.app/Contents/MacOS/portfix --explicitly-allowed-ports={port_you_want_unblocked}
Don't forget to undo all of this when you're done with your tests, as this is a vulnerable way to leave your browser for too long!
In my case I used Port 87 and got the error ERR_UNSAFE_PORT.
After changing the Port the site is working...
I have my app configured to use Kestrel and port 54321 for local debugging.
Previously, when the project was started I used port 12345.
Browser Link Dashboard shows always 0 connections despite I connect browsers (I tried Edge, IE, Firefox, Chrome and Visual Studio internal browser)
. Debugging works, browsing works, Browser Link Dashboard shows zero connections.
When I click "View in Browser" link, it opens the address http://localhost:12345/ which is NOT CONFIGURED ANYWHERE! The string doesn't exist in entire solution. At least in cannot be found using Shift+Ctrl+F.
Find all "localhost:12345", Subfolders, Find Results 1, Entire Solution, "."
Matching lines: 0 Matching files: 0 Total files searched: 825
I think Browser Link doesn't work because it expects the connections be made to port 12345 instead of 54321. I have no idea where this stupid port address is stored and how to change it. I have explicitly configured "App URL" configurations. Both "Browse with" and "Debug" options work properly. The effective port used is 54321.
BTW, I can't use port 12345 because it's used on my PC by GOG Galaxy service.
I tested it both with Kestrel and IIS configurations. Browsing works, Browser Link doesn't.
Though I haven't found the answer about wrong port number, I found the answer why the Browser Link feature didn't work. It is not obvious at all.
To make Browser Link feature work I had to uninstall Microsoft.VisualStudio.Web.BrowserLink.Loader NuGet package and install Microsoft.VisualStudio.Web.BrowserLink.
Those packages have exactly the same description! Anyway, it works.
In my case, I saw in Firefox' Web Developer Console, that the port used by the BrowserLink javascript was not correct. Clicking on the error message brought up a warning to accept the certificate for localhost, and after accepting the certificate, BrowserLink worked again. I realized that the error was with the browser after discovering that BrowserLink worked with other browser and that just Firefox was broken and showed a wrong port number.
Maybe it is asked several times before but I couldn't get any solution. I have installed xampp in my computer. I have changed httpd.conf and httpd-ssl.conf for "port 80" and "443" troubles. Now the control panel shows that, Apache and MySql is running fine. But http://localhost is not working. Shows Not Found in my browser.
Try this first:
Turn off skype, and all other applications that are running and then turn on the server
make sure that the server works as default installation (with all apps closed in first step)
Oh...I wrote http://localhost on my address bar. It did not work. Then I wrote http://localhost:8081(the port number which I changed) and it worked nicely.
I have some code that runs in a Windows service and sets some proxy settings on a per-user basis. Specifically it sets:
HKU[user sid]\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL
HKU[user sid]\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\EnableAutoProxyResultCache
HKU[user sid]\Software\Policies\Microsoft\Internet Explorer\Control Panel\Connection Settings
For "locked down" users it sets:
AutoConfigURL=http://127.0.0.1:8888/wpad.dat
EnableAutoProxyResultCache=0
Connection Settings=1
For "unlocked" users it sets:
AutoConfigURL (deletes this key)
Connection Settings (deletes this key)
Everything works great on Windows XP, in IE, FireFox, and Chrome. As soon as I restart any of those browsers, the new settings are used (uses the proxy or doesn't).
On Windows 7, everything works great in FireFox and IE, but not Chrome. Chrome doesn't start using the new settings until one of the following happen:
I run inetcpl.cpl and click the OK button (don't need to change anything, but do need to click OK, not just Cancel)
I log-off and back on the Windows user account
I run IE (just running IE and closing it)
I'm looking for a programatic way to reset this cache, whatever cache it is.
What I've tried but hasn't worked:
Almost every "netsh" command option I can think of.
InternetSetOption() (see MSDN) with the proxy settings changed and refresh flags (using NULL as the hInternet handle)
Deleted the values under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
Has anyone seen this caching issue and found a way to clear it? If not, what info should I be looking for in general. Is this a WinHTTP cache, TCP, IP, WinInet? Even though it is only showing up in Google Chrome, I don't think it is an actual Chrome cache, I think it is at the OS level.
I know I should probably be using InternetSetOption instead of updating the registry directly, but that doesn't work from a service, and I've found some anti-virus programs that are causing issues with any desktop app level code (but they don't mind if my service updates things). Not to mention that some of the settings above require admin/elevation to modify, even though all under HKCU.
Appears to be a testing error, or an anomaly, calling this after setting the registry values does appear to work:
InternetSetOption(NULL,INTERNET_OPTION_SETTINGS_CHANGED,NULL,0);
InternetSetOption(NULL,INTERNET_OPTION_REFRESH,NULL,0);
The following code produces an exception in node.js under windows:
var Socket = require("net").Socket;
socket = new Socket();
socket.connect(80, "localhost");
here's the message:
events.js:2083: Uncaught Error: getHostByName ENOTFOUND
When I remove localhost, it works fine. What could be causing this?
I tried turning the firewall off, but to no effect.
node.js uses c-ares resolver and ignores system resolver completely. So the advices regarding C:\WINDOWS\system32\drivers\etc\hosts are probably irrelevant.
c-ares library reads certain system config files - e.g. on Windows and Cygwin it reads /etc/resolv.conf. So you should check if it reads /etc/hosts or C:\WINDOWS\system32\drivers\etc\hosts. If it doesn't and doesn't have builtin support for localhost - then you will have to use 127.0.0.1
In my case adding the Microsoft Loopback Adaptor fixed this issue.
Click the Start Menu Orb. In the search box Type hdwwiz and then Click the hdwwize.exe program link.
Now the Add Hardware wizard should be open.
Scroll down the list and Select Network Adapters then Click Next.
Give the next window a moment to load, and then Click Microsoft and Select Microsoft Loopback Adapter.
From: http://www.groovypost.com/howto/microsoft/install-a-loopback-adapter-in-windows-7/
Option 1: Dont' use windows ;)
Option 2:
in C:\WINDOWS\system32\drivers\etc\hosts
add :
127.0.0.1 localhost