Make sure port is an integer.