NetCat

[listener]

$ nc -l <listener_ip> <listener_port> | tar -zxf -

[sender]

$ tar -czvf - <filename | filename* | /path/to/dir> | nc -s <sender_ip> <listener_ip> <listener_port>


Alternative ping

nc -vz <hostname_or_ip> <port>