Right now, when started through the Daml assistant, those are indeed the default values, as you can see here in the code. However, I’m not sure whether that’s just a happy accident or something you can rely on in the future; as far as I’m aware this is not explicitly documented.
Daml Assistant is, I believe, under the purview of the Ledger Clients team, so maybe @Raymond_Roestenburg will be able to say more (though he’s off this week).
@kctam also let me know that you can run daml canton-console on the same machine as the sandbox is running and the Canton Console will be connected to the participant (“sandbox”) and domain (“local”).
Thanks, @kctam.
With that, I don’t actually need the ports - it would be still good however if they were documented.