# Session keys doesnt work with --unsafe-rpc-external FLag

**URL:** <https://forum.bifrostnetwork.com/t/session-keys-doesnt-work-with-unsafe-rpc-external-flag/153>\
**Category:** Week 1\
**Created:** [October 19, 2022, 9:06am UTC](https://forum.bifrostnetwork.com/t/session-keys-doesnt-work-with-unsafe-rpc-external-flag/153 "2022-10-19T09:06:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex-AM](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Alex-AM](https://forum.bifrostnetwork.com/u/Alex-AM)\
**Post date:** [October 19, 2022, 9:06am UTC](https://forum.bifrostnetwork.com/t/session-keys-doesnt-work-with-unsafe-rpc-external-flag/153/1 "2022-10-19T09:06:43Z")

</div>

To connect relayer and make RPC visible outside container I used `--unsafe-rpc-external `, and it was solution for relayer run BUT with this flag it didint give me set session keys  
**Can not read properties of undefined (reading ‘slice’)**  
I decided to remove the flag `--unsafe-rpc-external ` and recreate container. And session keys command worked…  
So at this second

1. with the flag `--unsafe-rpc-external ` RPC is reachable outside container but session keys dont work
2. with NO flag `--unsafe-rpc-external ` RPC is not reachable outside container (relayer doesnt work) but session keys DO WORK  
Im just now wondering what is the right way to run the node .Because if I run for relayer with flag I cant set session keys, If I run without flag I cant connect relayer…

---

<div class="post-metadata">

**Author:** ![dnjscksdn98](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.bifrostnetwork.com/dnjscksdn98/32/141_2.png) [@dnjscksdn98](https://forum.bifrostnetwork.com/u/dnjscksdn98)\
**Post date:** [October 21, 2022, 2:24am UTC](https://forum.bifrostnetwork.com/t/session-keys-doesnt-work-with-unsafe-rpc-external-flag/153/2 "2022-10-21T02:24:32Z")

</div>

Out team have updated the manuals using docker for node and relayer both. Such as adding `--network host` option when you run your docker container. And also required to add `http://` in the beginning of your bifrost network url in your relayer configuration file.

> **[Using Docker](https://docs.thebifrost.io/bifrost-network/running-a-node/setting-up-a-validator-node/using-docker)**

> **[Configuration](https://docs.thebifrost.io/bifrost-network/running-a-node/setting-up-a-relayer/configuration)**

> **[Using Docker](https://docs.thebifrost.io/bifrost-network/running-a-node/setting-up-a-relayer/using-docker)**
