Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates

Qlik Sense WebSocket Connectivity Tester

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Lisa_Sun
Support
Support

Qlik Sense WebSocket Connectivity Tester

Last Update:

Apr 10, 2025 8:00:55 AM

Updated By:

Sonja_Bauernfeind

Created date:

Sep 6, 2017 11:39:29 PM

Attachments

Qlik Sense uses HTTP,  HTTPS, and WebSockets to transfer information to and from Qlik Sense.

The attached Webscoket Connectivity tester can be used to verify protocol compliance, indicating if a network policy, firewall, or other perimeter device is blocking any of the required connections.

If the tests return as unsuccessful, please engage your network team. 

The QlikSenseWEbsocketConnectivtyTester is not an officially supported application and is provided as is. It is intended to assist in troubleshooting, but further investigation of an unsuccessful test will require your network team's involvement. To run this tool, the Qlik Sense server must have a working internet connection.

Environment:

Qlik Sense Enterprise on Windows 

 

For Qlik Sense Enterprise on Windows November 2024 and later:

Since the introduction of extended WebSocket CSRF protection, using the WebSocket Connectivity tester on any version later than November 2024 requires a temporary configuration change.

  1. Open the Proxy.exe.config stored in C:\Program Files\Qlik\Sense\Proxy\
  2. Locate
    <add key="WebSocketCSWSHCheckEnabled" value="true"/> 
  3. Change it to
    <add key="WebSocketCSWSHCheckEnabled" value="false"/> 
  4. Restart the proxy
  5. Run the WebSocket Connectivity tester
  6. Revert the change

How to use the Websocket Connectivity Tester

  1. Download the attached package or download the package from GitHub: https://github.com/flautrup/QlikSenseWebsocketConnectivityTester
  2. Unzip the file
  3. Login to the Qlik Sense Management Console
  4. Create a Content Library

    1. Go to Content libraries 
    2. Click and Create New
    3. Name the Content Library: WebSocketTester
    4. Verify and modify the Security Rule

      Note that in our example, any user is allowed to access this WebSocketTester.

      security rules.png

    5. Click Apply

  5. Click Contents in the Associated items menu
  6. Click Upload
  7. Upload the QlikSenseWebsocketTest.html file.
  8. Copy the correct URL from the URL path

    content library.png

  9. Open a web browser (from any machine from which you wish to test the WebSocket connection).
  10. Paste the URL path and prefix the fully qualified domain name and https. 

    Example: https://qlikserver3.domain.local/content/WebSocketTester/QlikSenseWebsocketTest.html

    connectivity tester result.png

What to do if any of them fail?

Verify that WebSocket is enabled in the network infrastructure, such as firewalls, browsers, reverse proxies, etc.

See the article below under Related Content for additional steps.

 

Related Content

Comments
vincent_wei
Contributor
Contributor

This will not work with the default setup of Qlik Sense November 2024 with Patch 5.

You must change the config file of the proxy. Otherwise, WebSockets testing will fail.

Filippo_Nicolussi_P

As per @vincent_wei 

Starting with introduction of Qlik Sense Enterprise on Windows: Extended WebSock... - Qlik Community - 2509211 and option below:

<add key="WebSocketCSWSHCheckEnabled" value="true"/> 

in "C:\Program Files\Qlik\Sense\Proxy\Proxy.exe.config" the WebSocket tester will fail. 

To be sure no other reasons are preventing the connection set the option to false:

<add key="WebSocketCSWSHCheckEnabled" value="false"/> 

restart the proxy and test again. 

Revert above option as needed once confirmed it is not related to the missed CSRF WebSocket Token.  

 

fatinfazrizanor
Partner - Creator
Partner - Creator

Hi,

We have followed the steps to change the Proxy.exe.config. After we revert the change (replace the original proxy.exe.config file) and restart the services, we cant access qlik sense via ssl url link, but able to access via ip address. 

The url link cant be open and stuck at this link 4244 during authentication.

https://abc.com:4244/internal_windows_authentication/?targetId=<guid>

What steps that we missed out during revert?

Marie-Christine
Contributor
Contributor

Bonjour, j'ai des déconnexions intempestives depuis 1mois.

Chaque utilisateur passant par le LDAP (et notre reverse proxy) se connecte, joue un peu (entre 20 secondes et 1h30) puis se retrouve déconnecté : erreur 16 : connexion perdue. dans les logs, je trouve des erreurs : Error during stream authentication as Server partout sur le fichier Audit.Proxy. Ces lignes apparaissent toutes les 30 secondes, que quelqu'un soit connecté ou pas.

à noter que le problème ne se reproduit pas quand on se connecte en local sans passer par le LDAP et le NAM.

Et je vois bien les lignes de déconnexion : Connection negotiation as server failed [::ffff:mon serveur]:443 <-> [::ffff:le serveur du NAM]:51742, using: SslNoClientValidation

suivi de Client web socket [::ffff:mon serveur]:443 <-> [::ffff:le serveur du NAM]:48756 has failed for app: e140684d-8db7-452e-8499-7bcc80e91ed8

dans Engine, je lis les lignes StdServer: OnRemoteClosed entered for socket ::1:4747 <-> ::1:53501, user: UserDirectory=LDAP_GENERIC; UserId=mgensbit, app: e140684d-8db7-452e-8499-7bcc80e91ed8.

suivi de Session stop reason: Socket closed by client.

J'ai ouvert un case, on m'a demandé d'installer le Websocket Connectivity Tester, tout est au vert, même quand ça coupe, ça reste vert.

 

est-ce que quelqu'un a une idée ? copilot me dit qu'un équipement réseau force les fermetures de websocket. Le niveau 2 du support de mon entreprise dit que ça vient de Qlik.Et ça dure depuis 1 mois !

Version history
Last update:
‎2025-04-10 08:00 AM
Updated by: