Fix a bug in open() where the port was a signed integer when it should be an unsigned 16 bit integer (0-65535)