Get the host and port of a service using cli

I need a cmd command to get the temporary public host and port at which my tcp service is running.
Please help. Thanks

Can you please explain what you need to do with this?
Remote.It doesn’t provide a public host and port unless it is a public proxy or a persistent public url.
https://support.remote.it/hc/en-us/articles/4407869881613-Creating-a-Publicly-Shareable-Link-to-a-Connection
If you want to share the connection with another user, you can review options here: https://support.remote.it/hc/en-us/articles/360051386511-Device-and-Service-Sharing-Overview