Don't allow undefined server name or port in the constructors