Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jul 19, 2021 4:56:13 AM
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
Start-Process powershell.exe -Credential domain\qlikservice
whoami
[System.Environment]::GetEnvironmentVariable("HTTP_PROXY","user");
[System.Environment]::GetEnvironmentVariable("HTTP_PROXY","machine");
[System.Environment]::GetEnvironmentVariable("HTTPS_PROXY","user");
[System.Environment]::GetEnvironmentVariable("HTTPS_PROXY","machine");
netsh winhttp show proxy
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.
Start-Process powershell.exe -Credential domain\qlikservice
whoami
[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)
netsh winhttp reset proxy
Disable IE proxy through Windows Registry
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyEnable -Value 0 -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyServer -Value $null -Force
[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)
netsh winhttp set proxy <proxy>:<port>
Enable IE proxy through Windows Registry
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyEnable -Value 1 -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\' -Name ProxyServer