connect to hostname