SoulSpark
Software
www.skarnet.org

The tcpping program

tcpping is a basic utility that checks network connectivity by attempting TCP connections on a list of servers until one succeeds.

Interface

     tcpping [ -x | -X ] [ -T x+y ] ip:port [ ip:port ... ]

Options

Rationale: ECONNRESET means good probability of tcpping being able to reach ip, but nothing listening on port, which means that the machine at ip is alive and reachable anyway. But there's also a slim chance that some obnoxious filtering router along the way is rejecting your packets with TCP RST, and you are actually not able to reach ip.