Internet Explorer not bypassing proxy for local addresses

Solution 1:

Let's try the easy ones first:

(In Internet Explorer; and I'm assuming you're using IE because you're running IIS on 127.0.0.1 and you reference the hosts file in \drivers\etc.)

1.) Navigate to "tools", "internet options", "connections", "LAN Settings".

2.) Make sure, "Bypass proxy server for all local addresses" is selected.

Now, hmm. Assuming you're running an internal DNS server/private IP addresses:

3.) In a command-prompt, run: "ipconfig /registerdns"

4.) Ensure that you can forward and reverse ping your machinename w/ it's internal IP address.

5.) If "localhost" isn't working, try pinging localhost at the command prompt, it's resolving to 127.0.0.1, yeah?

Let's clean up that hosts file:

5.) Make sure your hosts file wasn't inadvertently saved with a ".txt" extention. If so, remove it.

6.) In your LAN/adapter settings, make sure that you don't have any DNS suffixes to be appended.

Curious to see if any of those fixed the problem..

Solution 2:

Check your IE Zones - I've seen it happen at times that IE would place a local server in the Internet zone, thus causing it to ignore the "bypass proxy" setting. Haven't figured out the reason why yet, but it does appear related to either a non-standard port or the server not being a member of the same Windows Domain as the client. To be honest, this is not something I've spent too much time researching; once I found a solution I moved on.

You should be able to explicitly add this server to your Intranet zone and thus trigger the proxy bypass; otherwise you will need to explicitly add the FQDN of the server to your "bypass proxy" list.

Solution 3:

This isn't entirely related, but this question came up on top of my google seach.

From https://support.microsoft.com/en-us/kb/262981:

When you connect to a Web server using the Internet Protocol (IP) address or Fully Qualified Domain Name (FQDN) on the local network, Microsoft Internet Explorer or Windows Internet Explorer connects through an assigned proxy server even if the Bypass proxy server for local addresses option is turned on.

However, if you connect to a Web server using the host name (for example, http://webserver) instead of the IP address (for example, http://10.0.0.1) or FQDN (for example, http://webserver.domainname.com), the proxy server is bypassed and Internet Explorer connects directly to the server.

Resolution:

To bypass a range of IP addresses or a specific domain name, specify the addresses in the proxy exception list:

In Internet Explorer, on the Tools menu, click Internet Options. On the Connections tab, click LAN Settings. Click Advanced, and type the appropriate information in the Exceptions area.

Solution 4:

In the early days of IE, a local server was defined to be "a server without periods in the name". in your example "http://seed-dev1/" would be local and "http://seed-dev1.hull.ac.uk:5555/" would be remote and sent to the proxy server.

In the IE Internet Options dialog, click on the Advanced button next to the port number text box for the proxy setting. You should see a text box at the bottom of this new dialog box that allows for exceptions. Try entering seed-dev1.hull.ac.uk in that box and clicking the OK buttons until you get back to the main IE window.

thanks, mark