Skip to main content

Ping hosts using tcp syn packets

Project description



Ping hosts using tcp syn packets.

Simple example:

$ synping

Pinging 4 times on port 80:

Reply from time=7.40 ms
Reply from time=10.31 ms
Reply from time=7.18 ms
Reply from time=6.92 ms



Sent: 4 packets
Received: 4 packets
Lost: 0 packets (0.00%)

Min time: 6.92 ms
Max time: 10.31 ms
Average time: 7.95 ms


Install using pip:

pip install synping


Download and set executable permission on the script file:

chmod +x


Download and run using the python interpreter:



Usage: synping host [options]

ping hosts using tcp syn packets

  --version   show program's version number and exit
  -h, --help  show this help message and exit
  -t          ping host until stopped with 'control-c'
  -n COUNT    number of requests to send (default: 4)
  -p PORT     port number to use (default: 80)
  -w TIMEOUT  timeout in seconds to wait for reply
              (default: 3)


Ping host on port 80 (default):

$ synping host

Ping host on port 22:

$ synping host -p 22

Ping host 10 times with 1 second timeout:

$ synping host -n 10 -w 1


  • Works on Python 2 and Python 3
  • Works fine on Linux and should work on all platforms
  • Briefly tested on Windows, Cygwin and OSX

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 synping, version 0.8
Filename, size File type Python version Upload date Hashes
Filename, size synping-0.8.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page