Check WinHTTP proxy settings

By default the Agent uses WinHTTP and Windows includes an WinHTTP Proxy Configuration Tool which can be used to check whether the computer's WinHTTP connection is direct, or through a proxy.

For example, the Agent was setup to connect directly to the internet, but a connection cannot be established. When running the tool it may show that the computer is connecting through a proxy and after adding the proxy settings in the Agent a connection is established.

The version of the WinHTTP Proxy Configuration Tool depends on the version of Windows installed on the computer.

netsh

The netsh command is supported from Windows Vista and Windows Server 2008 onwards. To show the proxy settings open a command prompt and enter netsh winhttp show proxy.

This returns the method used by WinHTTP to connect

C:\>netsh winhttp show proxy

Current WinHTTP proxy settings:
Direct access (no proxy server).

proxycfg

On systems earlier than Windows Vista and Windows Server 2008 the use the proxycfg command. To show the proxy settings open a command prompt and enter proxycfg.

This returns the method used by WinHTTP to connect

C:\>proxycfg

Microsoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Current WinHTTP proxy settings under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :