# Connection to agent timed out check your settings

**URL:** <https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407>\
**Category:** Community Support\
**Tags:** tlclient, thinlinc\
**Created:** [26 July 2022 07:13 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407 "2022-07-26T07:13:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andyshen555](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andyshen555](https://community.thinlinc.com/u/Andyshen555)\
**Post date:** [26 July 2022 07:13 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/1 "2022-07-26T07:13:15Z")

</div>

I have installed thinlinc server on my Ubuntu 20.04 and its up running. The IP is 128.46.xx.xx. I can ssh to it. However, every time I try to connect through thinlinc, no matter web or client, it tries to Redirecting to ThinLinc server [https://192.168.1.102](https://192.168.1.102). This is not my server address and I don’t know where this comes from. It happens on every client I have tried and I can connect to other servers properly through the same client.

---

<div class="post-metadata">

**Author:** ![Andyshen555](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andyshen555](https://community.thinlinc.com/u/Andyshen555)\
**Post date:** [26 July 2022 07:27 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/2 "2022-07-26T07:27:56Z")

</div>

To provide more info, I have only one machine and Thinlinc server installed as Master. Where does this agent come from? I have access to the 1010 admin port and I can ssh to it. Please provide suggestions on what I should do to trouble shoot.

---

<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:** [26 July 2022 08:01 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/3 "2022-07-26T08:01:17Z")

</div>

Hello @Andyshen555

Could you describe a bit more about your network setup?  
It sounds like there is NAT involved here, and this has been discussed a few times here before,  
perhaps this thread can give you some help along the way?

> [@New user: what ports to open in router?](https://community.thinlinc.com/t/new-user-what-ports-to-open-in-router/238):
>
> I am a new user and I have installed thinlinc on our linus RHEL8.5 machine… this has the local address 192.168.1.6. I can use Thinlinc to connect to this machine from my mac using the address 192.168.1.6 without problem. However from home I have to connect to the server with its address: 193.XXX.XXX.XX … and when I do that I get the following Connection to server: "193… " Connection to agent: “192.168.1.6” and then Connection to server:“192.168.1.6” timed out. Check your settings. What …

Kind regards,  
Martin

---

<div class="post-metadata">

**Author:** ![Andyshen555](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andyshen555](https://community.thinlinc.com/u/Andyshen555)\
**Post date:** [26 July 2022 08:26 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/4 "2022-07-26T08:26:44Z")

</div>

I have tried this post before starting a new one. My client system is windows and I changed the HOST\_ALIASES to 192.168.1.102:22=localhost:2222. Then when I try to ssh, it reports Bad local forwarding specification ‘2222:192.168.1.102’  
My server is under a static address and I’m trying to access from public networks. My client is connected to a wireless router.

---

<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:** [26 July 2022 08:45 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/5 "2022-07-26T08:45:35Z")

</div>

Hello,

Ok. The agent will choose the ipaddress assigned to its first network interface, in your case this seems to be 192.168.1.102, and instruct the vsmserver service to tell the client to make a (ssh) connection to this address.

In your case, you will have to change the `agent_hostname` setting in `/opt/thinlinc/etc/conf.d/vsmagent.hconf` to the external facing ipaddress (128.46.xx.xx) and the restart the vsmagent service.

`systemctl restart vsmagent`

Kind regards,  
Martin

---

<div class="post-metadata">

**Author:** ![Andyshen555](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andyshen555](https://community.thinlinc.com/u/Andyshen555)\
**Post date:** [26 July 2022 09:11 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/6 "2022-07-26T09:11:59Z")

</div>

Thanks that works for me. Now I have another question. When I login and click next on the welcome screen, all I get is a blue screen. Does the Ubuntu gnome desktop GUI work with thinking or do I need to install some other GUI?

never mind, it sometimes works but sometimes doesn’t.

---

<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:** [26 July 2022 09:27 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/7 "2022-07-26T09:27:18Z")

</div>

Glad to hear that you’re able to connect.

I have some ideas of what might be go wrong here, are you able to share your `/var/log/auth.log` with me, either here or you can DM me.

Regards,  
Martin

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/aaron/32/13_2.png) [@aaron](https://community.thinlinc.com/u/aaron)\
**Post date:** [28 July 2022 10:19 UTC](https://community.thinlinc.com/t/connection-to-agent-timed-out-check-your-settings/407/8 "2022-07-28T10:19:31Z")

</div>

> [@Andyshen555](#):
>
> never mind, it sometimes works but sometimes doesn’t.

I just encountered the same thing on Ubuntu. Make sure you’re not logged in as the same user at the local console when connecting via ThinLinc.
