Adding 0 check for port number