# Thinlinc and zerotier

**URL:** <https://community.thinlinc.com/t/thinlinc-and-zerotier/616>\
**Category:** Community Support\
**Tags:** linux\
**Created:** [20 May 2023 21:39 UTC](https://community.thinlinc.com/t/thinlinc-and-zerotier/616 "2023-05-20T21:39:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eval\_rdp\_at](https://avatars.discourse-cdn.com/v4/letter/e/f0a364/32.png) [@eval\_rdp\_at](https://community.thinlinc.com/u/eval_rdp_at)\
**Post date:** [20 May 2023 21:39 UTC](https://community.thinlinc.com/t/thinlinc-and-zerotier/616/1 "2023-05-20T21:39:55Z")

</div>

Hi,

i do not want to open up any ports on my router, so for all remote activities and services i use running in my lan, I use zerotier as vpn. it basically creates a new network interface on all members of the vpn and i can connect to them.

i just installed thinlinc because i guess it works smoother compared to vncserver & remmina (which does work btw). but when i set it up and want to connect, the thinlinc client as well as the webclient do redirect/route/map/… to the local IP adress even if i try to connect to the IP from the VPN client.

any way, I can configure the thinlinc client which network interface it uses?

long story short - i try to connect to 10.xxx.xx.xx but in the followup step, thinlinc does connect to 192.168.1.x

```auto

2023-05-20T23:14:24: ssh[E]: PASSWORD: anon 10.xxx.xx.xxx
2023-05-20T23:14:24: ssh[E]: AUTH SUCCESS
2023-05-20T23:14:24: ssh[E]: CONNECTED
2023-05-20T23:14:24: ssh[E]: UPDATE HOST KEYS: 3 10.xxx.xx.xxx 10.xxx.xx.xxx 22
2023-05-20T23:14:24: ssh[E]: UPDATED HOST KEY: anon
2023-05-20T23:14:24: ssh[E]: UPDATED HOST KEY: anon
2023-05-20T23:14:24: ssh[E]: UPDATED HOST KEY: anon
2023-05-20T23:14:24: Updating host keys for 10.xxx.xx.xxx.
2023-05-20T23:14:25: ssh[E]: THINLINC-LOGIN: HELLO 4.14.0
2023-05-20T23:14:25: ssh[E]: THINLINC-LOGIN: CONNECTED MASTER
2023-05-20T23:14:25: My hardware address is anon
2023-05-20T23:14:25: Calling XML-RPC method 'get_capabilities'
2023-05-20T23:14:25: Response: 0: Erfolg
2023-05-20T23:14:25: Calling XML-RPC method 'get_user_sessions'
2023-05-20T23:14:25: Response: 0: Erfolg
2023-05-20T23:14:25: Calling XML-RPC method 'kill_session'
2023-05-20T23:14:26: Response: 0: Erfolg
2023-05-20T23:14:26: Calling XML-RPC method 'get_user_sessions'
2023-05-20T23:14:26: Response: 0: Erfolg
2023-05-20T23:14:26: Calling XML-RPC method 'new_session'
2023-05-20T23:14:29: Response: 0: Erfolg
2023-05-20T23:14:29: SSH command: anon
2023-05-20T23:14:29: SSH pid is 6620
2023-05-20T23:14:29: ssh[E]: CONFIRM HOST KEY: 192.xxx.x.xx 192.xxx.x.xx 22 anon
2023-05-20T23:14:29: No acceptable host key found.
2023-05-20T23:14:44: Process 6619 exited with code 0
2023-05-20T23:14:44: Process 6620 killed by signal 15

```

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/martin/32/41_2.png) [@martin](https://community.thinlinc.com/u/martin)\
**Post date:** [22 May 2023 08:04 UTC](https://community.thinlinc.com/t/thinlinc-and-zerotier/616/2 "2023-05-22T08:04:12Z")

</div>

Hello,

ThinLinc will first connect to your 10.x.x.x IP, and then disconnect and make a new connection to whatever `agent_hostname` is set to in `/opt/thinlinc/etc/conf.d/vsmagent.hconf`  
If this is left empty, it will be the primary ipaddress of the first network interface card of your machine.

Try to change `agent_hostname` to your 10.xxx.xx.xx ipaddress and then restart the vsmagent.service:

`sudo systemctl restart vsmagent`

Kind regards,  
Martin

---

<div class="post-metadata">

**Author:** ![rhuanpk](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/rhuanpk/32/386_2.png) [@rhuanpk](https://community.thinlinc.com/u/rhuanpk)\
**Post date:** [29 November 2023 23:50 UTC](https://community.thinlinc.com/t/thinlinc-and-zerotier/616/3 "2023-11-29T23:50:45Z")

</div>

I has the same problem and your answer works for me, thank you!
