Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Windows actually detect LAN (proxy) settings when using Automatic Configuration

Tags:

windows

proxy

lan

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?

like image 567
Craig Day Avatar asked Oct 10 '08 12:10

Craig Day


People also ask

How does Windows automatically detect proxy settings?

When a connectoid changes (for example, a wireless connection changes an access point, or a VPN is enabled), the proxy detection algorithm is run again. By default, the Internet Explorer proxy settings are used to detect the proxy.

Should proxy server automatically detect settings?

Browsers are often configured to automatically detect settings as a convenience for networks that use proxy servers. Most of us don't need this. don't know about proxy.


1 Answers

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".

like image 158
Tomalak Avatar answered Oct 14 '22 19:10

Tomalak