> What would be a proper range for the ports?

Unsigned 16 bit, in principle.

> Besides, I would see this as an enhancement once someone is acutally using this in a multiarm setup.

I strongly disagree: I'd say checking your input for values is simply part of a proper implementation of the desired functionality.