# How to run the RLlib server in the colab/cloud

**URL:** <https://discuss.ray.io/t/how-to-run-the-rllib-server-in-the-colab-cloud/4136>\
**Category:** RLlib\
**Created:** [November 15, 2021, 12:18pm UTC](https://discuss.ray.io/t/how-to-run-the-rllib-server-in-the-colab-cloud/4136 "2021-11-15T12:18:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slientes](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@Slientes](https://discuss.ray.io/u/Slientes)\
**Post date:** [November 15, 2021, 12:18pm UTC](https://discuss.ray.io/t/how-to-run-the-rllib-server-in-the-colab-cloud/4136/1 "2021-11-15T12:18:05Z")

</div>

Hi all ,  
I am planning to use rllib to train a custom external enviroment. Firstly i run the example Cartpole\_server.py script in colab, and the Cartpole\_client.py script in my local laptop. Then i connect to the colab public ip via ssh and remap the localhost port to my local laptop. But the client could not recive the correct data but raise an error.  
I am so grateful if any friends could have some advice about how to depoly a external envs and train it in the cloud, thank you so much!!  
(1)the output in colab of the server script:  
(pid=1252) 2021-11-15 07:24:08,211  
INFO policy\_server\_input.py:190 – Sending worker creation args to client.  
(pid=1252) 127.0.0.1 - - [15/Nov/2021 07:24:08] “POST / HTTP/1.1” 200 -  
(2)error occoured in the client script in local laptop.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/7/7a03500b6286dd1ea8c97f8f23a9155af91f175d.png)

---

<div class="post-metadata">

**Author:** ![Lars\_Simon\_Zehnder](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/lars_simon_zehnder/32/1185_2.png) [@Lars\_Simon\_Zehnder](https://discuss.ray.io/u/Lars_Simon_Zehnder)\
**Post date:** [November 15, 2021, 4:47pm UTC](https://discuss.ray.io/t/how-to-run-the-rllib-server-in-the-colab-cloud/4136/2 "2021-11-15T16:47:16Z")

</div>

Hi @Slientes ,

in my opinion using Google Colab is more a hassle than making things easier for you. I run my experiments in the Google Cloud by using a ray cluster on some servers from Compute Engine.

See this [topic](https://discuss.ray.io/t/running-rllib-with-ray-tune-on-gcp/3790) for more infos on how to do it.

Hope this helps

---

<div class="post-metadata">

**Author:** ![Slientes](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@Slientes](https://discuss.ray.io/u/Slientes)\
**Post date:** [November 16, 2021, 8:13am UTC](https://discuss.ray.io/t/how-to-run-the-rllib-server-in-the-colab-cloud/4136/3 "2021-11-16T08:13:46Z")

</div>

Hi @Lars_Simon_Zehnder ,  
Thank you so much for your advice. I think this is quit helpful for me, and i will make an attempt to arrange my project follow your gudience.  
Good luck!!
