# Zrok subdomain?

**URL:** <https://openziti.discourse.group/t/zrok-subdomain/2222>\
**Category:** General Questions\
**Created:** [March 6, 2024, 8:20pm UTC](https://openziti.discourse.group/t/zrok-subdomain/2222 "2024-03-06T20:20:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will-Labs](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/will-labs/32/1831_2.png) [@Will-Labs](https://openziti.discourse.group/u/Will-Labs)\
**Post date:** [March 6, 2024, 8:20pm UTC](https://openziti.discourse.group/t/zrok-subdomain/2222/1 "2024-03-06T20:20:17Z")

</div>

I have a firebase app and I don't want to have to re-deploy my whole app every time (with updated, different [http://askljdx3zfow.zrok.io](http://askljdx3zfow.zrok.io)).

how can I:  
zrok share public localhost:4818 --subdomain 2222kkksamesamesameeverytime828

so that my thing will always be at [http://2222kkksamesamesameeverytime828.zrok.io](http://2222kkksamesamesameeverytime828.zrok.io) ??

other services have this, zrok works great except for this. how do I ask for a subdomain?  
(and yes I know, I should put a really random one that will usually always be available)

plzz help 🙏 I really like zrok 👾

---

<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:** [March 6, 2024, 8:35pm UTC](https://openziti.discourse.group/t/zrok-subdomain/2222/2 "2024-03-06T20:35:09Z")

</div>

Welcome to the community, @Will-Labs !

The best way to use zrok with your FireBase app is to reserve a zrok subdomain.

It's a two-step process, assuming you already did `zrok enable`.

1. Reserve a public share token. For this example, I'll assume the app I want to share runs on localhost:80. This reserves the `https://myfirebaseapp.share.zrok.io` domain for your share.

2. Run zrok with the reserved token

Here's a short article about this concept: [Reserved Shares | Zrok](https://docs.zrok.io/docs/concepts/sharing-reserved/)

---

<div class="post-metadata">

**Author:** ![Will-Labs](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/will-labs/32/1831_2.png) [@Will-Labs](https://openziti.discourse.group/u/Will-Labs)\
**Post date:** [March 6, 2024, 8:44pm UTC](https://openziti.discourse.group/t/zrok-subdomain/2222/3 "2024-03-06T20:44:50Z")

</div>

thanks so much for replying 🙏 still having some issues understanding,

so I successfully did zrok reserve public 6777 --unique-name cjdkljf2093jkvl2jrandom338

then I tried to zrok share public reserved [https://localhost:6777](https://localhost:6777)  
and it didn't work. I tried several other ways too. It's not quite doing what I want

I basically want to share my localhost:6777 at that reserved namespace from above

how can I do it?

# EDIT: nvm thx I got it:

zrok share reserved cjdkljf2093jkvl2jrandom338 public [https://localhost:6777](https://localhost:6777)

zrok is awesome 👾 🚀 🌕 🧑‍🚀
