Preserve public port across deployments