Fixed http.request call so that it connects to remote machine