# Setting up multiple agent\_hostname

**URL:** <https://community.thinlinc.com/t/setting-up-multiple-agent-hostname/976>\
**Category:** Community Support\
**Tags:** networking, vpn\
**Created:** [24 June 2024 09:13 UTC](https://community.thinlinc.com/t/setting-up-multiple-agent-hostname/976 "2024-06-24T09:13:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [25 June 2024 10:31 UTC](https://community.thinlinc.com/t/setting-up-multiple-agent-hostname/976/2 "2024-06-25T10:31:54Z")

</div>

Hi,

It’s not possible to have multiple values for `agent_hostname`. Instead, what you’d want to do is either set it to a hostname, that will resolve to different IP addresses, depending on if the lookup originates from within your LAN or from the WAN/VPN.

This could be achieved by having a local DNS server serving the local LAN.  
[https://www.cendio.com/resources/docs/tag/network.html#thinlinc-in-a-nat-split-dns-environment](https://www.cendio.com/resources/docs/tag/network.html#thinlinc-in-a-nat-split-dns-environment)

Or, you could utilize the HOST\_ALIASES parameter on the client side:

> [@Remote access/ Behind a NAT](https://community.thinlinc.com/t/remote-access-behind-a-nat/577/2):
>
> Hello @garrom, and welcome to the forum! First of, sorry for letting you wait this long for a response from us. I think the easiest way forward for you is to set up HOST\_ALIASES. This set up requires three steps to be taken. Configure HOST\_ALIASES in ~/.thinlinc/tlclient.conf Start an ssh tunnel from your laptop to your internal server (over the forwarded port in xfinity) Connect with ThinLinc client, utilizing step 1 and 2 Configure HOST\_ALIASES in ~/.thinlinc/tlclient.conf H…

> **[How to make a ThinLinc server behind NAT externally accessible | ThinLinc by...](https://www.cendio.com/thinlinc/docs/install/simple-nat/)**
>
> This guide describes one way to enable external access to a single ThinLinc server behind NAT using the native ThinLinc client.

Kind regards,

---

_[View the full topic](https://community.thinlinc.com/t/setting-up-multiple-agent-hostname/976)._
