70

When Windows Internet Properties -> Connections -> LAN Settings -> Automatic Configuration is set to "Automatically detect settings" how does Windows actually determine/discover what the settings are? Is it a network broadcast or some kind of targeted query to a server configured somewhere in the registry, or something else?

Kev
  • 115,559
  • 50
  • 294
  • 378
Craig Day
  • 2,505
  • 1
  • 24
  • 26
  • This is because in your organization proxy settings are probably distributed through DHCP (or maybe group policy), whereas Chrome only supports the discovery through DNS described in my answer. – Tomalak Aug 08 '13 at 18:27

5 Answers5

83

Its simple: Browsers (Firefox works the same) query GET http://wpad/wpad.dat.

If a web server named wpad is resolveable, it should serve wpad.dat, a script file analog to netscape PAC files. MIME type must also be "application/x-ns-proxy-autoconfig".

Tomalak
  • 322,446
  • 66
  • 504
  • 612
  • -1 because the mechanism is more complicated. Mozilla's implementation fits the simple description, IE is more conformant to WPAD. – benc Oct 30 '09 at 06:35
  • 15
    Sorry, but I have to disagree. WPAD is as simple as that. IE behaves exactly as described, and so does Firefox - not sure what you refer to. Can you elaborate? – Tomalak Oct 30 '09 at 09:44
  • 1
    Interested to know what the timeout is for this, I found this question and answer after disabling the "Automatically detect settings" option to stop Chrome from hanging on "Downloading proxy script", when Chrome tries to load it's first web page. – StackEng2010 Mar 25 '18 at 22:37
9

This info about WPAD (Web Proxy Auto Discovery) seems to describe the process in detail, though I have confirmed that what Tomalak says is also actually occurring.

Glenn
  • 8,692
  • 2
  • 42
  • 54
Craig Day
  • 2,505
  • 1
  • 24
  • 26
8

The IE configuration described enables a WPAD implementation. Here's the Microsoft explanation of the entire mechanism (probably too much detail for a single post).

benc
  • 1,213
  • 5
  • 29
  • 38
7

It's a network broadcast, usually using DHCP.

That there wikipedia page should tell you all you need to know.

Ryan
  • 9,860
  • 7
  • 41
  • 57
-5

•Go to Tools > Options > General > Connection Settings > •Set to “Manual Proxy Configuration”