TCP echo and conversion between hostname and IP address