update the ports