Java Implementation of a "Ping" client