renamed second variable to retry, added one hour check for port number.