tcping.exe - ping over a tcp connection
Description:
tcping.exe is a small console application that operates similarly to 'ping', however it works over a tcp port. Not a terribly interesting concept, but I had trouble finding a windows utility to do this that I was happy with.
Update: Feb 28 2007. Have added '-t' and '-n <count>' command line options by request.
Update: Jun 22 2009. Have added '-i', '-d', '-b' command line options by request.
Update: Aug 16 2009. Now using QueryPerformanceCounter instead of ftime for timing.
Update: Oct 14 2009. Returning 0 for success, 1 for failure, and 2 for mixed success and failure.
Platform:
Language:
License:
Usage:
Usage: tcping [-t] [-d] [-i interval] [-n times] server-address [server-port]
-t : ping continuously until stopped via control-c
-n 5 : for instance, send 5 pings
-i 5 : for instance, ping every 5 seconds
-d : include date and time on each line
-b 1 : enable beeps (1 for on-down, 2 for on-up,
3 for on-change, 4 for always)
If you don't pass server-port, it defaults to 80.
Example Output:
D:\tcping-devel>tcping www.microsoft.com
Probing 65.55.12.249:80/tcp - Port is open - time=104ms
Probing 65.55.12.249:80/tcp - Port is open - time=102ms
Probing 65.55.12.249:80/tcp - Port is open - time=104ms
Probing 65.55.12.249:80/tcp - Port is open - time=105ms
Ping statistics for 65.55.12.249:80
4 probes sent.
4 successful, 0 failed.
Approximate trip times in milli-seconds:
Minimum = 102ms, Maximum = 105ms, Average = 103ms
Download Current Version (0.5):
tcping.exe, win32 console application
tcping.exe, win32 console application, zipped
source + Makefile for tcping.exe, zipped.
Old versions:
v0.4 tcping.exe tcping.zip tcping-src.zip
v0.3 tcping.exe tcping.zip tcping-src.zip
v0.2 tcping.exe tcping.zip tcping-src.zip
v0.1 tcping.exe tcping.zip tcping-src.zip