Skip to content

Instantly share code, notes, and snippets.

@cnDelbert
Last active September 25, 2024 13:22
Show Gist options
  • Save cnDelbert/5fb06ccf10c19dbce3a7 to your computer and use it in GitHub Desktop.
Save cnDelbert/5fb06ccf10c19dbce3a7 to your computer and use it in GitHub Desktop.
How to install tcpping on Linux

To install tcptraceroute on Debian/Ubuntu:

$ sudo apt-get install tcptraceroute

To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:

$ sudo yum install tcptraceroute

Finally, download tcpping from the web.

$ cd /usr/bin
$ sudo wget http://www.vdberg.org/~richard/tcpping
$ sudo chmod 755 tcpping

To measure network latency by using tcpping, simply run it as follows.

$ tcpping www.cnn.com
seq 0: tcp response from 157.166.240.13 [open] 82.544 ms
seq 1: tcp response from 157.166.241.10 [open] 80.771 ms
seq 2: tcp response from 157.166.241.11 [open] 80.838 ms
seq 3: tcp response from 157.166.241.10 [open] 80.145 ms
seq 4: tcp response from 157.166.240.11 [open] 86.253 ms 
@myfreax
Copy link

myfreax commented Mar 19, 2017

Hello,According to this document can not install tcping

Ubuntu/Debian

$ wget http://linuxco.de/tcping/tcping-1.3.5.deb
$ sudo dpkg -i tcping-1.3.5.deb

RedHat/Fedora

sudo yum install tcping

Ref

@paul4156
Copy link

paul4156 commented Oct 7, 2020

Works really well with Azure Linux based App Service. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment