tartaruscode/Make TCP Connection
Test TCP connectivity to one or more host:port targets with optional send/expect verification
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| remotehost | Hostname or IP to connect to (ignored when targets is set) | no | — |
| remoteport | Port to connect to, 1-65535 (ignored when targets is set) | no | — |
| targets | Multiline list of host:port targets (takes precedence over remotehost/remoteport). Per-target send/expect overrides: host:port | send=payload | expect=pattern | no | — |
| send | Default payload to send after connecting (supports \r\n escapes). Overridden per-target with | send=... | no | — |
| expect | Default regex the response must match. Overridden per-target with | expect=... | no | — |
| expect_timeout | Seconds to wait for response data when using send/expect | no | 5 |
| maxtime | Maximum total retry time in seconds | no | 60 |
| connect_timeout | Per-attempt socket timeout in seconds | no | 10 |
| max_retries | Maximum retry attempts (0 = unlimited, bounded by maxtime) | no | 0 |
| retry_delay | Initial backoff delay in seconds | no | 1 |
Outputs
| name | description |
|---|---|
| result | Summary result message |
| latency_ms | Total connection time in milliseconds (sum across all targets) |
| details | JSON array with per-target results: [{host, port, status, latency_ms, response, error}] |