如何在 Windows 上查看代理设置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22368515/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to see the proxy settings on windows?
提问by l a s
Our work laptops are configured to use proxy to access external sites and I don't have access to see the proxy information. All our applications like IDEs are configured to use system proxy. Is there a way I can check the proxy settings; For example, on chrome or command prompt or any other ways?
我们的工作笔记本电脑配置为使用代理访问外部站点,而我无权查看代理信息。我们所有的应用程序(如 IDE)都配置为使用系统代理。有没有办法检查代理设置;例如,在 chrome 或命令提示符或任何其他方式上?
回答by rleelr
It's possible to view proxy settings in Google Chrome:
可以在 Google Chrome 中查看代理设置:
chrome://net-internals/#proxy
铬://网络内部/#proxy
Enter this in the address bar of Chrome.
在 Chrome 的地址栏中输入此内容。
回答by Raged
You can use a tool called: NETSH
您可以使用名为:NETSH的工具
To view your system proxy information via command line:
通过命令行查看您的系统代理信息:
netsh.exe winhttp show proxy
Another way to view it is to open IE, then click on the "gear" icon, then Internet options -> Connections tab -> click on LAN settings
另一种查看方式是打开IE,然后点击“齿轮”图标,然后Internet选项->连接选项卡->点击局域网设置
回答by UuDdLrLrSs
You can figure out which proxy server you're using by accessing some websites with a browser and then running the DOS command:
您可以通过使用浏览器访问某些网站,然后运行 DOS 命令来确定您使用的是哪个代理服务器:
netstat
netstat
and you'll see some connections in the Foreign Addresscolumn on port 80 or 8080 (common proxy server ports). Ideally you will be able to identify the proxy server by its naming convention.
并且您将在端口 80 或 8080(公共代理服务器端口)上的外部地址列中看到一些连接。理想情况下,您将能够通过其命名约定来识别代理服务器。
回答by ROMANIA_engineer
Other 4 methods:
其他4种方法:
From Internet Options(but without opening Internet Explorer)
Start > Control Panel > Network and Internet > Internet Options > Connections tab > LAN Settings
From Registry Editor
- Press Start+ R
- Type
regedit
- Go to HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Internet Settings
- There are some entries related to proxy - probably ProxyServeris what you need to open (double-click) if you want to take its value (data)
Using PowerShell
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | findstr ProxyServer
Output:
ProxyServer : proxyname:port
Mozilla Firefox
Type the following in your browser:
about:preferences#advanced
Go to Network > (in the Connection section) Settings...
从 Internet 选项(但不打开 Internet Explorer)
开始 > 控制面板 > 网络和 Internet > Internet 选项 > 连接选项卡 > LAN 设置
从注册表编辑器
- 按Start+R
- 类型
regedit
- 转到 HKEY_CURRENT_USER > 软件 > Microsoft > Windows > CurrentVersion > Internet 设置
- 有一些与代理相关的条目 -如果要获取其值(数据),可能需要打开(双击)ProxyServer
使用 PowerShell
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | findstr ProxyServer
输出:
ProxyServer : proxyname:port
火狐浏览器
在浏览器中输入以下内容:
about:preferences#advanced
转到网络>(在连接部分)设置...
回答by simple-solution
An update to @rleelr:
It's possible to view proxy settings in Google Chrome:
@rleelr 的更新:
可以在 Google Chrome 中查看代理设置:
chrome://net-internals/#http2
铬://网络内部/#http2
Then select
然后选择
View live HTTP/2 sessions
查看实时 HTTP/2 会话
Then select one of the live sessions (you need to have some tabs open). There you find:
然后选择一个实时会话(您需要打开一些选项卡)。在那里你会发现:
[...]
t=504112 [st= 0] +HTTP2_SESSION [dt=?]
--> host = "play.google.com:443"
--> proxy = "PROXY www.xxx.yyy.zzz:8080"
[...]
============================