# How to check current status of client connection via command line

**URL:** <https://hub.mender.io/t/how-to-check-current-status-of-client-connection-via-command-line/4999>\
**Category:** General Discussions\
**Tags:** yocto\
**Created:** [June 3, 2022, 4:54pm UTC](https://hub.mender.io/t/how-to-check-current-status-of-client-connection-via-command-line/4999 "2022-06-03T16:54:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor.Wiedemann](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@Victor.Wiedemann](https://hub.mender.io/u/Victor.Wiedemann)\
**Post date:** [June 3, 2022, 4:54pm UTC](https://hub.mender.io/t/how-to-check-current-status-of-client-connection-via-command-line/4999/1 "2022-06-03T16:54:29Z")

</div>

I have a remote IoT device that uses Mender with a touchscreen. I want to check the status of the Mender client periodically to show an indicator on my touchscreen for debugging assistance.

Is there a CLI command I can use to check the client’s status and see if it is connected to the Mender server?

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [June 7, 2022, 7:23am UTC](https://hub.mender.io/t/how-to-check-current-status-of-client-connection-via-command-line/4999/2 "2022-06-07T07:23:40Z")

</div>

The Mender client (the `mender` binary) is not constantly connected to the server, that would be `mender-connect`, which provides the Remote Terminal feature. Unfortunately there is no command to check its status, that information is only available on the server. You could check `netstat -t` and see if anyone is connected to `hosted.mender.io`, but this is obviously not robust.
