setup kx/kdb instance in a new linux server/machine

I have deployed KX/KDB software to a new linux server with lisence. q session could be launched and works.

But I cannot make connection from an external server (e.g. my local machine via #C and JAVA) to the new KDB server. Is there any steps missing?

 

error:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.106.4.131:6144’

  1. Is it possible you have some firewall/networking rules blocking remote access?
  2. Can you open  10.106.4.131:6144 in your browser?
  3. Can you try something other than kdb? .i.e python3 -m http.server 6144 and connect your browser.

thanks for your reply:

  1. they are internal hosts and do not have firewall/networking issue. my local PC can ping the IP

2.  cannot open 10.106.4.131:6144  in the browser

3.  From an existing qconnection to hopen this one, I have error like ‘hop. OS reports: No route to host’

  1. if using kx.c kdbclient3 = new kx.c(“nyblrhirsd01”, 6154, Environment.UserName + “:mypassword”), 

System.Net.Sockets.SocketException: ‘A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.106.4.131:6154’

 

Any suggest?

For 3. the suggestion is to test in a browser. A q connection to the python server would fail as the protocols are different.

I copied 10.106.4.131:6154  in a brower,  but it shows me cannot reach the page

If python is running a server but your browser cannot connect it suggests an issue with the network settings and not kdb+. Are only certain ports open?

 

If I can only use ssh port I often set up a port forward so I can connect on my machine

https://linux.die.net/man/1/ssh#:~:text=%2DL%0A%5B%0Abind_address%3A%5Dport%3Ahost%3Ahostport 

 

ssh -L 6154:localhost:6154 whateveryourusernameis@10.106.4.131

 

 

thanks for reply.

  1. from server side, I can see 6154 is running, which is open

  2. my #c code and the other good KDB server cannot make connection to the new server. my local PC can ping the new server

 

 

 

what should I try now? thanks a lot