Test TCP Socket This simple script can be used to test TCP connectivity between a source interface and the destination interface.