Skip to main content
Announcements
Qlik Connect 2025! Join us in Orlando join us for 3 days of immersive learning: REGISTER TODAY

Windows Proxy Configuration

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Lisa_Sun
Support

Windows Proxy Configuration

Last Update:

Jul 19, 2021 4:56:13 AM

Updated By:

Sonja_Bauernfeind

Created date:

Dec 11, 2018 12:22:25 AM

Network proxies intercept and analyze traffic. As a security and control mechanism, a proxy can be configured to block certain packages, domains, or protocols. For example, Qlik Sense traffic like web sockets might not be properly allowed, leaving Qlik client-server communication to fail. 

Windows Server typically has proxy references in multiple configurations. Understanding the current proxy configuration can be helpful during troubleshooting and temporarily disabling the configuration can help confirm proxy-related issues. Confirming the existence of Internet proxies can also motivate including the local IT team for further troubleshooting of any communication problems. 

The below sections show how to confirm the current settings, remove the settings, and restore the settings.

Environment:

QlikView  
Qlik Sense Enterprise on Windows  


Check Windows Proxy Settings

  1. Run PowerShell terminal as a suitable user
    • Server-side: User that runs Qlik services  
    • Client-side: User that is navigating browser
    Start-Process powershell.exe -Credential domain\qlikservice
  2. Confirm that PowerShell is running as the expected user
    whoami
  3. Get system variables HTTP_PROXY and HTTPS_PROXY, for both current user and local machine
    [System.Environment]::GetEnvironmentVariable("HTTP_PROXY","user");
    [System.Environment]::GetEnvironmentVariable("HTTP_PROXY","machine");
    [System.Environment]::GetEnvironmentVariable("HTTPS_PROXY","user");
    [System.Environment]::GetEnvironmentVariable("HTTPS_PROXY","machine");
    
    
  4. The returned result shows proxy definition, or empty if no proxy is defined.

    powershell output.png

  5. Get Windows HTTP Services for proxy details 
    netsh winhttp show proxy
  6. Return result shows proxy definition, or confirm no proxy is defined. 

    powershell Direct access no proxy server.png

  7. Validate that proxy is not set in Internet Options > LAN Settings

    Local Area Network Settings.png

 

Remove Windows Proxy Settings

NOTE1: Altering proxy settings should only be done in the context of troubleshooting, and local IT recommendations should be followed. 
NOTE2: Changes to proxy settings in production environments should be done per local IT recommendations.
TIP: Take notes of settings before removing values, to enable recreating settings later if required. 

  1. Run PowerShell terminal as the same user runs Qlik service.
     
    Start-Process powershell.exe -Credential domain\qlikservice
  2. Confirm that PowerShell is running as the expected user

    whoami
  3. Remove HTTP_PROXY and HTTPS_PROXY variables
     
    [System.Environment]::SetEnvironmentVariable("HTTPS_PROXY ", "", [System.EnvironmentVariableTarget]::Machine)
    [System.Environment]::SetEnvironmentVariable("HTTPS_PROXY ", "", [System.EnvironmentVariableTarget]::User)
    [System.Environment]::SetEnvironmentVariable("HTTP_PROXY ", "", [System.EnvironmentVariableTarget]::Machine)
    [System.Environment]::SetEnvironmentVariable("HTTP_PROXY ", "", [System.EnvironmentVariableTarget]::User)
    
  4. Remove Windows HTTP Service proxy setting
     
    netsh winhttp reset proxy
  5. Disable IE proxy through Windows Registry 

    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyEnable -Value 0 -Force
  6. Remove IE proxy address reference through Windows Registry
     
    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyServer -Value $null -Force

 

Restore Windows Proxy Settings

  1. Open Powershell terminal as Administrator
  2. Define HTTP_PROXY and HTTPS_PROXY system variables
     
    [System.Environment]::SetEnvironmentVariable("HTTPS_PROXY ", "<MyMachineHttpsProxy>", [System.EnvironmentVariableTarget]::Machine)
    [System.Environment]::SetEnvironmentVariable("HTTPS_PROXY ", "<MyUSerHttpsProxy>", [System.EnvironmentVariableTarget]::User)
    [System.Environment]::SetEnvironmentVariable("HTTP_PROXY ", "<MyMachineHttpProxy>", [System.EnvironmentVariableTarget]::Machine)
    [System.Environment]::SetEnvironmentVariable("HTTP_PROXY ", "<MyUserHttpProxy>", [System.EnvironmentVariableTarget]::User)
    
  3. Set Windows HTTP Service proxy setting
     
    netsh winhttp set proxy <proxy>:<port>
  4. Enable IE proxy through Windows Registry 

    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyEnable -Value 1 -Force
  5. Enable IE proxy address reference through Windows Registry
     
    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyServer 
Labels (1)