Work when BASE_PORT is specified as an integer.