use hostname for connection