Move nextPort to ports.next