Qliksense - connection to remote server

forms

#1

I have a remote server with qliksense. I want to get connect to that server so I could receive json data from it. The connection should be done using javascript. connecting to qliksense desktop on port 4848 is successful.

How can I connect to a remote machine?

what is the right code to do it?

Local working connection:

var config = {
host: ‘localhost’,
port: ‘4848’,
isSecure: window.location.protocol === “https:”

qsocks.Connect(config).then(global => {
    return global.openDoc('Ori_Test.qvf')
})