---
title: "How to check hosts via a custom port (TCP)?"
description: "Checking host availability via a custom TCP port is possible when ICMP ping is not reachable. You can change the host check command to a predefined or custom TCP port check plugin in the host's advanced configuration."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020258733-op5-monitor-how-to-check-hosts-via-a-custom-port-tcp/index.html"
---
## Question

---

A host that I monitor is not reachable via ping (ICMP), how can I use a host check on a different protocol, such as a TCP port?

## Answer

---

To change the host check command to verify that the host is up, do the following:

1. Navigate to the configuration page of the host
2. Click "Advanced"
3. Find the configuration option "check\_command"
4. Change to one of the predefined commands "check-host-alive-\*"

You can also create your own port check using the plugin "check\_tcp" or any other plugin of your choosing. More information on check commands can be found in the documentation in the chapter [Commands](https://docs.itrsgroup.com/docs/op5-monitor/current/topics/configure/commands.html)

![OP5 Monitor - How to check hosts via a custom port (TCP)?](https://docscdn.itrsgroup.com/faq/images/op5/360020258733-19761781-2017-08-01-001-check_host_alive-cusomt.png)


