# How to use ngrok with Rasa X on Windows

**URL:** <https://forum.rasa.com/t/how-to-use-ngrok-with-rasa-x-on-windows/15648>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [September 13, 2019, 1:15pm UTC](https://forum.rasa.com/t/how-to-use-ngrok-with-rasa-x-on-windows/15648 "2019-09-13T13:15:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanmark](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ryanmark/32/4770_2.png) [@ryanmark](https://forum.rasa.com/u/ryanmark)\
**Post date:** [September 13, 2019, 1:15pm UTC](https://forum.rasa.com/t/how-to-use-ngrok-with-rasa-x-on-windows/15648/1 "2019-09-13T13:15:56Z")

</div>

Hi - I tried to follow the instructions for using ngrok with Rasa X to tactically share locally hosted Rasa X with other users in this video, starting at 45:00 [Webinar: Rasa X in-depth - YouTube](https://www.youtube.com/watch?v=YCZsiyOfDLk&t=496s)

The video describes two steps to do prior to starting Rasa X

1. start ngrok and get ngrok forwarding URL (https://\_\_\_\_\_\_\_\_.ngrok.io)
2. set RASA\_X\_HOSTNAME

the video shows Linux command for 2 “export RASA\_X\_HOSTNAME=https://\_\_\_\_\_\_\_\_.ngrok.io”

I’m on Windows, so I need to use something different for 2. I’ve tried:

- SET RASA\_X\_HOSTNAME=https://\_\_\_\_\_\_\_\_.ngrok.io
- SETX RASA\_X\_HOSTNAME https://\_\_\_\_\_\_\_\_.ngrok.io

However, after each when I start Rasa X, it still has the localhost URL instead of the shareable ngrok URL.

Has anybody successfully been able to share Rasa X with ngrok on Windows? If so, what steps did you take?

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [September 17, 2019, 11:24am UTC](https://forum.rasa.com/t/how-to-use-ngrok-with-rasa-x-on-windows/15648/2 "2019-09-17T11:24:07Z")

</div>

Hi @ryanmark, could you try using `RASA_X_HOST` instead of `RASA_X_HOSTNAME`?

---

<div class="post-metadata">

**Author:** ![ryanmark](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ryanmark/32/4770_2.png) [@ryanmark](https://forum.rasa.com/u/ryanmark)\
**Post date:** [September 17, 2019, 9:03pm UTC](https://forum.rasa.com/t/how-to-use-ngrok-with-rasa-x-on-windows/15648/3 "2019-09-17T21:03:15Z")

</div>

Thanks for responding. I followed your recommendation to set RASA\_X\_HOST and after a bit more fiddling finally got it to (sort of) work of:

- .\ngrok.exe 5002 to get forwarding URL
- set both RASA\_X\_HOST and RASA\_X\_HOSTNAME in env. variables to forwarding URL
- check values using ECHO %RASA\_X\_HOST% (has to be in a vanilla command window - won’t work in Powershell)
- set RASA\_X\_PASSWORD in env. variables - (see [How to get Rasa X password](http://forum.rasa.com/t/how-to-get-rasa-x-password/11488) for details)
- start rasa x (again from a vanilla command window
- when rasa x starts, replace “localhost:5002” in the URL it opens with the ngrok forwarding URL (so the result looks like “http://\_\_\_\_\_\_\_.ngrok.io/conversations”
- click on the share icon and then click on generate link to get shareable URL
- you can now use that shareable URL on another system to do a chat with your model

The “sort of” in my intro is because on the remote system you only see the user entries, not the bot responses. The bot responses are visible in the Conversations tab of Rasa x on the “host” system.

## Next step is debugging why bot responses aren’t showing up on the remote system.
