How to determine the Roon Server TCP port

9330 - 9332 are mentioned here
Unable to connect to Roon Server after upgrade - Support - Roon Labs Community

sudo lsof -i -P |less

this will help you verify what is needed if the top solution fails.

I believe it recently changed, and hopefully will stay for a while.