portcheck
Check if a TCP port is open on any host or IP address. Tests connectivity with a configurable timeout to validate deployments or firewall rules.
Instructions
Check if a TCP port is open on a host. Tests connectivity by attempting a TCP connection with a configurable timeout. Returns OPEN/CLOSED status with response time or error details. Useful for verifying if a server is running, checking firewall rules, or validating deployments. Supports hostnames, IPv4, and IPv6 addresses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname or IP address to check,required | |
| port | Yes | Port number to check (1-65535),required | |
| timeout_sec | No | Connection timeout in seconds. Default: 5, Max: 30 |