Generic hostname in socket connection