Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to know what the address for my proxy server is so I can configure another program to also use it. If I go into IE, Internet Properties, LAN Settings, then all I see is an automatic configuration script but not the actual proxy address. How can I get this?

I'm using Windows XP.

share|improve this question
up vote 97 down vote accepted

The auto proxy detection system works by downloading a file called wpad.dat from the host wpad. First confirm this host exists from a command prompt:

ping wpad

If it doesn't exist, you may have to put the correct DNS suffix. In the same command prompt, type

ipconfig /all

You should see a Primary DNS Suffix and a DNS Suffix Search List

Try appending each of these with a . to wpad:

ping wpad.<primary dns suffix>

If any of these work, then in your browser enter http://wpad.<suffix>/wpad.dat. This will download the proxy auto configuration file you can open in notepad.exe

Toward the bottom of this file, you should see a line saying

PROXY <host:port>;

It might be repeated if you have multiple proxies available. The host and port are what you need.

If this file doesn't exist, then either there is no proxy server, or the proxy server is being provided by dhcp (note that this would only work with IE, so if firefox can surf, this is not the method being used). If you don't have access to the dhcp server to see what it is sending, the easiest way would be to open a site in ie, then go to a command prompt. Type

netstat -ban

This will provide a list of connections made with the process id of each process. Go to Task Manager, and select View/Select Columns and enable PID (Process Identifier). Look for the PID of iexplore.exe in the list returned by netstat -ban This will reveal the proxy ip and port.

share|improve this answer
I tried in both IE and Firefox, neither could find that site. – Mike Christensen Oct 14 '11 at 1:23
I updated my answer with some more detail... – Paul Oct 14 '11 at 2:46
It probably works on some systems, but there's no host called "wpad" here (with or without the DNS suffix). I think this might be configured through some sort of domain policy or logon script, since it's greyed out in IE and cannot be changed. Anyway, I ended up writing a little C# program to get it instead. Hopefully your answer will help someone though! – Mike Christensen Oct 14 '11 at 15:04
To download the automatic configuration script I find it is easier to just copy and paste the link to the script into the address bar (YMMV)… – mousio Oct 17 '11 at 21:30
Yea the problem with that is the domain policy prevents that from being changed, and IE disables the box for the URL. It won't let you copy it or see the entire thing heh. – Mike Christensen Oct 30 '11 at 19:03

Try the following command in cmd:

reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | find /i "proxyserver"

Hope helps

share|improve this answer
In my case, I had to find "AutoConfigURL" instead of "proxyserver". This led me to a *.pac file which I could read through to find the default proxy returned by the script. – Ben Jun 15 '15 at 17:57

You can also get the automatic configuration file URL from the registry by running:

reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Wpad" /s | find /i "WpadDetectedURL"
share|improve this answer

The following command also seems to work. As a bonus it avoids contacting lots of DNS servers that might or might not work, and it avoids querying the registry, so it functions even in fairly locked-down environments:

Windows Vista or later:

netsh winhttp show proxy

Windows XP or earlier:

netsh diag connect ieproxy

Some additional work is required to extract the proxy address from the output, so the registry approach is simpler if you know it's going to be available.


I've found that on windows 7 netsh sometimes returns different results depending on how I call it. If I run the above command manually in a prompt, I get 'Direct Access - No Proxy'. However, calling netsh from SAS results in an actual proxy being listed!

share|improve this answer
sais: Direct access <no proxy server>. but i definetly am behind a proxy .. only shows WinHTTP Proxys – philx_x Mar 20 '15 at 13:11
The question is tagged [windows] - are you in a windows environment with a non-WinHTTP proxy? – user3490 Mar 20 '15 at 13:35
This is weird - depending on how I call netsh I seem to get any of 3 different answers, all on the same machine... – user3490 Mar 20 '15 at 13:51
y sorry i forgot to mention. i am indeed on a windows machine. – philx_x Mar 20 '15 at 14:07
I'm seeing the "Direct Access" line also. What did you mean by "calling netsh rom SAS"? – Ben Jun 15 '15 at 17:36

Non of the above hints worked for me (working in a big company using Windows 7 Enterprise, "completely closed" for endusers).

I finally found this little Java program, which worked fine for me:

share|improve this answer

I have created a simple WinProxyViewer.exe to show Windows proxy settings. It's purpose is that a common user is able to run it and send the output to the admin (tech. support, etc.).

share|improve this answer

use the below website to get your proxy :

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review – Enigma Apr 21 at 15:48
My proxy also block everything tagged "proxy" ... i'm fucked – Leandro Ruel Jun 13 at 12:45

Try this.

Open IE => Tools => Internet Options => Connections => LAN Settings

share|improve this answer
He is using an automatic proxy configuration. The settings will just show where the configuration is coming not the actual proxy address. – Matteo Jan 24 '14 at 7:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .