# Get the host and port of a service using cli

**URL:** <https://forum.remote.it/t/get-the-host-and-port-of-a-service-using-cli/1369>\
**Category:** Desktop\
**Created:** [June 23, 2025, 5:10pm UTC](https://forum.remote.it/t/get-the-host-and-port-of-a-service-using-cli/1369 "2025-06-23T17:10:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sc4lene](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sc4lene](https://forum.remote.it/u/Sc4lene)\
**Post date:** [June 23, 2025, 5:10pm UTC](https://forum.remote.it/t/get-the-host-and-port-of-a-service-using-cli/1369/1 "2025-06-23T17:10:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bstrech](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.remote.it/bstrech/32/266_2.png) [@bstrech](https://forum.remote.it/u/bstrech)\
**Post date:** [June 23, 2025, 11:45pm UTC](https://forum.remote.it/t/get-the-host-and-port-of-a-service-using-cli/1369/2 "2025-06-23T23:45:23Z")

</div>

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](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](https://support.remote.it/hc/en-us/articles/360051386511-Device-and-Service-Sharing-Overview)
