base_port is modified.