# Unable to connect to server behind socks proxy (only OpenLens)

**URL:** <https://forums.k8slens.dev/t/unable-to-connect-to-server-behind-socks-proxy-only-openlens/663>\
**Category:** Lens Support & Troubleshooting\
**Created:** [July 11, 2023, 11:53am UTC](https://forums.k8slens.dev/t/unable-to-connect-to-server-behind-socks-proxy-only-openlens/663 "2023-07-11T11:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshekow](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/m/50afbb/32.png) [@mshekow](https://forums.k8slens.dev/u/mshekow)\
**Post date:** [July 11, 2023, 11:53am UTC](https://forums.k8slens.dev/t/unable-to-connect-to-server-behind-socks-proxy-only-openlens/663/1 "2023-07-11T11:53:51Z")

</div>

Hey,

using SSH I are creating a SOCKS5 proxy to a jump host that can reach a private AKS cluster.

kubectl and k9s work fine, as long as I set the HTTPS\_PROXY environment variable to “socks5://localhost:1234” (the socks port), or if I edit my kubeconfig and add the “proxy-url” setting as explained here: [Use a SOCKS5 Proxy to Access the Kubernetes API | Kubernetes](https://kubernetes.io/docs/tasks/extend-kubernetes/socks5-proxy-access-api/)

With Lens Desktop connecting to the AKS cluster also works.

However, with OpenLens, it does not work. I get the following error:

```auto
E0711 13:45:44.124183 34466 proxy_server.go:147] Error while proxying request: dial tcp: lookup ourhost.privatelink.westeurope.azmk8s.io on 10.xxx.xxx.xxx: no such host

Failed to get /version for clusterId=<some-id>: Internal Server Error

```

Any ideas?
