Properly set the ports.