Skip to content

towsifkafi/tcpcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcpcheck - A tool to check TCP connections

A tool I created to check TCP connections, which I use frequently across multiple devices. So I created this repository so that you can install it with go install.

Installation

go install github.com/Towsif12/tcpcheck@latest

If you want to build it yourself, feel free to clone the repository and run go build

Usage

tcpcheck 127.0.0.1 3306

Usage

🆕 New Features

⏱ Timestamp

💡 Feature suggested by @iurynovarino

Each connection attempt now includes a full timestamp with date and time in the format:

image

💤 Delay Option (-t)

💡 Feature suggested by @Tacioandrade

You can define the interval between connection attempts using the -t flag.
The value is in seconds and supports decimals (e.g., 0.5, 1.2, etc).
The default delay is 0.5 seconds.

📌 Usage:

tcpcheck [-t seconds] <IP> <Port>

📌 Examples:

tcpcheck 192.168.1.1 80
# Uses the default delay of 0.5s

tcpcheck -t 2 192.168.1.1 80
# Uses a delay of 2 seconds

tcpcheck -t 0.1 192.168.1.1 80
# Uses a delay of 100ms

About

A tool to check TCP connections.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages