fixed the no port error message to account for the port var