Allow port to be passed as an integer.