Skip to main content

Concurrent multi-host ping (ICMP and TCP)

Project description


Build status Language grade: Python Coverage status PyPI version

cPing concurrently checks if hosts are responding using ICMP echo or TCP SYN.


pip3 install cping


cPing does not require root privileges; you can run it as a normal user.

cping host1 host2

alt text

Tip: When you launch cPing, look at the footer; it's got some useful actions.


See the available arguments to adjust the behavior of cPing or use a different protocol.

cping -h

If you found a bug, or just have a question/suggestion, please open an issue (greatly appreciated).

Sparkline on Windows

The sparkline (right part of the screenshot) is simplified on Windows as it doesn't support the required block characters. If you know of any substitutes, let me know.

Unprivileged ICMP Sockets

If you're getting a Permission denied exception, it is likely that your OS is too old to have unprivileged ICMP sockets enabled by default. You can enable this with:

sudo sh -c 'echo net.ipv4.ping_group_range = 0 2147483647 >> /etc/sysctl.conf'
sudo sysctl -p

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cping, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size cping-0.1.4-py3-none-any.whl (31.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cping-0.1.4.tar.gz (25.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page