32

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?

Unihedron
  • 10,902
  • 13
  • 62
  • 72
l a s
  • 3,836
  • 10
  • 42
  • 61
  • Does anyone know what needs to be done so that webkit can read the proxy settings variable ( `PS C:\> $env:HTTPS_PROXY`) under windows? – surfmuggle May 12 '22 at 13:02

5 Answers5

75

It's possible to view proxy settings in Google Chrome:

chrome://net-internals/#proxy

Enter this in the address bar of Chrome.

rleelr
  • 1,854
  • 17
  • 26
  • 5
    In my case this shows the proxy SCRIPT address but not the current proxy server address itself. – StayOnTarget Sep 12 '17 at 18:42
  • 1
    @DaveInCaz Just view the proxy address in the pac file. – RoadRunner Jul 09 '18 at 06:04
  • 1
    @roadrunner some pac scripts I have seen are complex with conditional logic so they are non trivial to understand... – StayOnTarget Jul 09 '18 at 09:28
  • 1
    @DaveInCaz Understandable. Ussually they ussually show up as `PROXY
    ` in the pac file, atleast the ones Ive seen. Another alternative is to use a pac file parser such as [pacparser](https://github.com/manugarg/pacparser).
    – RoadRunner Jul 09 '18 at 09:48
  • 11
    As of Chrome 71, it appears that this has been stripped down such that it no longer shows proxy settings. – Zach Bloomquist Feb 20 '19 at 19:49
  • @ZachBloomquist see my improved answer here of how to get around this: https://superuser.com/questions/33588/how-to-view-internet-explorer-auto-detected-proxy-settings#1211548 – SharpC Jul 22 '19 at 10:53
19

You can use a tool called: 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

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Raged
  • 394
  • 2
  • 9
15

Other 4 methods:

  1. From Internet Options (but without opening Internet Explorer)

Start > Control Panel > Network and Internet > Internet Options > Connections tab > LAN Settings 2. 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 ProxyServer or AutoConfigURL is what you need to open (double-click) if you want to take its value (data)
  1. Using PowerShell

     Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | findstr ProxyServer
    

Output:

    ProxyServer               : proxyname:port
  1. Mozilla Firefox

Type the following in your browser:

    about:preferences#advanced

Go to Network > (in the Connection section) Settings...

kevinarpe
  • 20,319
  • 26
  • 127
  • 154
ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
  • 4
    In case of **proxy auto-config** you can get the PAC file URL in `HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL` – Pragmateek Dec 04 '17 at 10:43
12

You can figure out which proxy server you're using by accessing some websites with a browser and then running the DOS command:

netstat

You'll see some connections in the Foreign Address column on port 80 or 8080 (common proxy server ports).

(https://stackoverflow.com/a/8161865/3195477)

Ideally you will be able to identify the proxy server by its naming convention.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
1

An update to @rleelr:
It's possible to view proxy settings in Google Chrome:

chrome://net-internals/#http2

Then select

View live HTTP/2 sessions

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"
[...]
                              ============================
simple-solution
  • 1,109
  • 1
  • 6
  • 13
  • 1
    When I tried that chrome:// URL it immediately redirects me to chrome://net-internals/#events and does not show any "view live..." link. Chrome v75 – StayOnTarget Jul 02 '19 at 11:22
  • 1
    Google Chrome 76 reports: "The net-internals events viewer and related functionality has been removed. Please use chrome://net-export to save netlogs and the external catapult netlog_viewer to view them." – Alexander Stohr Sep 30 '19 at 07:58
  • This helped. Use "chrome://net-export" instead. – kmchmk Aug 19 '20 at 12:58