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

守給你的承諾、 提交于 2019-11-26 17:57:33

问题


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?


回答1:


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




回答2:


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.




回答3:


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




回答4:


It's a network broadcast, usually using DHCP.

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




回答5:


Its DHCP ;)

In modern systems it is DHCP who does this all.




回答6:


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



来源:https://stackoverflow.com/questions/191023/how-does-windows-actually-detect-lan-proxy-settings-when-using-automatic-confi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!