# Cannot run kdb 64bit behind a proxy

**URL:** <https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [March 9, 2022, 9:41pm UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428 "2022-03-09T21:41:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pineBear1231](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@pineBear1231](https://forum.kx.com/u/pineBear1231)\
**Post date:** [March 9, 2022, 9:41pm UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428/1 "2022-03-09T21:41:00Z")

</div>

Hi,&nbsp;

I get an error message about connecting to a licensing server when running a 64bit version of kdb on Windows 10. I am a grad student using&nbsp;a corporate laptop. I don’t see a way to configure KDB to use a proxy.&nbsp; The Internet connectivity is there. The proxy setting in Windows is configured to use a script at a particular address (automatic proxy setting with the script).

Does kbd support proxies? How would I configure it to use a particular proxy? I want to use 64 bit kdb since I plan to experiment with jupyterq that does not support 32 bit kdb.&nbsp;

“'2022.03.09T15:28:47.728 couldn’t connect to license daemon – exiting”

Thanks

---

<div class="post-metadata">

**Author:** ![pineBear1231](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@pineBear1231](https://forum.kx.com/u/pineBear1231)\
**Post date:** [March 9, 2022, 9:44pm UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428/2 "2022-03-09T21:44:00Z")

</div>

Forgot to mention. I tried setting an environment variable HTTP\_PROXY=http://myproxy.com:8090 but that did not work. That’s the proxy I used for Python’s pip

---

<div class="post-metadata">

**Author:** ![rocuinneagain1](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rocuinneagain1](https://forum.kx.com/u/rocuinneagain1)\
**Post date:** [March 10, 2022, 9:27am UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428/3 "2022-03-10T09:27:00Z")

</div>

The email you received with your kc.lic included some details on this topic:

&nbsp;

_Generally, kdb+ as an on-demand client behaves exactly like, and should be treated the same as, any plain http client (e.g. curl, apt-get or firefox) accessing a CDN-fronted web service._  
_It connects to a remote port 80 as part of a normal http request; thus you generally only need to allow outbound http \_connections\_ but both \_traffic\_ to and from remote port 80._  
_As the communication protocol is plain http you can employ any standard mechanism, including&nbsp;proxies&nbsp;(transparent and opaque by setting the HTTP\_PROXY environment variable) as long as kdb+ is able to issue an http request and receive a response from the remote&nbsp;Kx&nbsp;service._  
_If you need to allowlist the remote servers should treat kdb+ on-demand as a CDN-fronted service and employ DNS-based filtering. The current list of hostnames required for kdb+ on-demand operation is {h,g}.kdbod.{com,net,org}._

---

<div class="post-metadata">

**Author:** ![pineBear1231](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@pineBear1231](https://forum.kx.com/u/pineBear1231)\
**Post date:** [March 10, 2022, 3:56pm UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428/4 "2022-03-10T15:56:00Z")

</div>

Is there a way to run q.exe with some verbose logging to see where the connectivity breaks? I tried setting http proxy via “set HTTP\_PROXY=http://xyz:1080” and using -l option for logging, but the log file is not created.

---

<div class="post-metadata">

**Author:** ![rocuinneagain1](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rocuinneagain1](https://forum.kx.com/u/rocuinneagain1)\
**Post date:** [March 10, 2022, 4:12pm UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428/5 "2022-03-10T16:12:00Z")

</div>

Can you confirm you can access&nbsp;{h,g}.kdbod.{com,net,org}&nbsp; on 80?

Can you ping them from your shell?

ping g.kdbod.com

&nbsp;

---

<div class="post-metadata">

**Author:** ![pineBear1231](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@pineBear1231](https://forum.kx.com/u/pineBear1231)\
**Post date:** [March 10, 2022, 4:16pm UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428/6 "2022-03-10T16:16:00Z")

</div>

Ping works fine (as seen below). I also added an entry to windows firewall to allow network access to q.exe. The issue must be with the proxy, I just want to see what q sees.

I looked in registry and AutoConfigURL for proxy is http://xyz/abc.pac. The pack file has the rules for proxying. I am guessing that might be an issue.&nbsp;

Pinging [dy2kttecucxn3.cloudfront.net](http://dy2kttecucxn3.cloudfront.net) [13.249.90.90] with 32 bytes of data:  
Reply from 13.249.90.90: bytes=32 time=13ms TTL=237  
Reply from 13.249.90.90: bytes=32 time=12ms TTL=237  
Reply from 13.249.90.90: bytes=32 time=12ms TTL=237  
Reply from 13.249.90.90: bytes=32 time=12ms TTL=237

Ping statistics for 13.249.90.90:  
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),  
Approximate round trip times in milli-seconds:  
Minimum = 12ms, Maximum = 13ms, Average = 12ms

---

<div class="post-metadata">

**Author:** ![pineBear1231](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@pineBear1231](https://forum.kx.com/u/pineBear1231)\
**Post date:** [March 10, 2022, 4:49pm UTC](https://forum.kx.com/t/cannot-run-kdb-64bit-behind-a-proxy/12428/7 "2022-03-10T16:49:00Z")

</div>

I read proxy’s pac file and figured out the right proxy to use. Using that as the HTTP\_PROXY solved the problem. If there are issues with the connection on the start-up, the log is not created however.&nbsp;

Thank you
