Added if statment for port number < 0