Skip to content

Releases: MiffyLiye/TcpPing

Improved Time Measurement

21 Jun 04:56
Compare
Choose a tag to compare
Pre-release

Improved time measurement method.
Edge case bug fix.

First fully tested release

19 Jun 07:04
Compare
Choose a tag to compare
Pre-release

Tested under key scenarios.
Optimized warm up method.

New Output Information Format

18 Jun 11:56
Compare
Choose a tag to compare
Pre-release

Changed output information format.
Fixed loss rate calculation error.

Improve Accuracy of First Ping

18 Jun 07:35
Compare
Choose a tag to compare
Pre-release

Solved Issue:
#2

First viable version of TcpPing

18 Jun 06:19
Compare
Choose a tag to compare
Pre-release

TcpPing: A portable TCP ping tool

How to use it

On OS X

First you may need to have Mono installed.

In the following example I will assume that the TcpPing.exe is placed in $HOME/bin/.

If you want to ping localhost on port 80, you can run from terminal using

/usr/local/bin/mono $HOME/bin/TcpPing.exe localhost:80

And you may get the output like

Pinging localhost:80 [127.0.0.1:80]:
time = 3.693 ms
time = 0.325 ms
time = 0.336 ms
time = 0.302 ms
--- 127.0.0.1:80 ping statistics ---
round-trip min/avg/max = 0.302/3.693/1.164 ms

You can also ping localhost with IP

/usr/local/bin/mono $HOME/bin/TcpPing.exe 127.0.0.1:80

IPv6 is not supported in this version.

Wrap in a shell script

You can also wrap the .NET programme in a shell script so that you will not need to input mono each time.

The script tcpping.sh contains

#!/bin/sh
/usr/local/bin/mono $HOME/bin/TcpPing.exe "$@"

And you can run TcpPing with

./tcpping.sh localhost:80