Skip to main content

Ping hosts using tcp syn packets

Project description

Python script to “ping” hosts using tcp syn packets.


Install using pip:

pip install synping


Download and set executable permission on the script file:

chmod +x


Download and run using the python interpreter:



Similar to “ping” utility:

usage: [-h] [-v] [-t] [-n COUNT] [-p PORT] [-w TIMEOUT] host

ping hosts using tcp syn packets

positional arguments:
  host           hostname or IP to ping

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  -t             ping host until stopped with 'control-c'
  -n COUNT       number of requests to send
  -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 Python2 (not tested on Python3)
  • 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.3
Filename, size File type Python version Upload date Hashes
Filename, size synping-0.3.tar.gz (3.5 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