# Using zrok to expose a local server

**URL:** <https://openziti.discourse.group/t/using-zrok-to-expose-a-local-server/2964>\
**Category:** zrok\
**Created:** [August 12, 2024, 9:41am UTC](https://openziti.discourse.group/t/using-zrok-to-expose-a-local-server/2964 "2024-08-12T09:41:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amichen](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@amichen](https://openziti.discourse.group/u/amichen)\
**Post date:** [August 12, 2024, 9:41am UTC](https://openziti.discourse.group/t/using-zrok-to-expose-a-local-server/2964/1 "2024-08-12T09:41:43Z")

</div>

Hi, I'm new here.  
I'm trying to expose a server that runs on my local machine (linux).  
it runs on a specific port and i need to expose it via a specific url.  
for example i would like the app that runs on 127.0.0.1:789 to be exposed on a url https://\<some\_specific\_generated\_string\>.share.zrok.io  
I previously used ngrok to do this task (using 1 command line) but had to switch due to high prices.  
Is there any way to do the same thing using zrok?  
thanks in advance to the helpers!

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [August 12, 2024, 1:24pm UTC](https://openziti.discourse.group/t/using-zrok-to-expose-a-local-server/2964/2 "2024-08-12T13:24:31Z")

</div>

Welcome, and thank you for your question.

zrok is perfect for this. It sounds like you want what we've been calling the "zrok frontdoor" strategy (reliable public access to an always-on Linux or Docker service).

There's a Linux service and Docker service option: [zrok frontdoor | Zrok](https://docs.zrok.io/docs/guides/frontdoor/)

Both options are set up to restart after every reboot. There are some user-level alternatives I can describe if those system-level options don't cut it.

Let us know how it goes!

---

<div class="post-metadata">

**Author:** ![amichen](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@amichen](https://openziti.discourse.group/u/amichen)\
**Post date:** [August 13, 2024, 7:57am UTC](https://openziti.discourse.group/t/using-zrok-to-expose-a-local-server/2964/3 "2024-08-13T07:57:00Z")

</div>

thank for the answer will take a look into it
