How does one control the port that the package manager service will listen to after it starts up?

I have no way of controlling the firewall on my hosted build agent. It looks like my intermittent package-manager-start problems might be the result of the package manager service randomly selecting ports that the build agents don’t like for some reason.

How can I control which port will be tried when the Unity Editor launches the package manager service?

Hello,

In this post there is an explanation about how to do this: Could not establish a connection with the unity package manager local server process