# SocketIO not working in GCP

**URL:** https://forum.rasa.com/t/socketio-not-working-in-gcp/47921
**Category:** Rasa Open Source
**Created:** [September 22, 2021, 3:09pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921 "2021-09-22T15:09:42Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![sks](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sks](https://forum.rasa.com/u/sks)
#### Post date: [September 22, 2021, 3:09pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/1 "2021-09-22T15:09:42Z")

</div>

Hello. I have deployed my rasa bot in google cIoud VM. I have added socketio configuration to credentials.yml file and vm ip address in html script(for webchat). But still my bot doesn’t answer with socketio. It works with rest api. But I want to use socketio. Please help me.

Regards SKS

---

<div class="post-metadata">

### Author: ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)
#### Post date: [September 22, 2021, 3:25pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/2 "2021-09-22T15:25:07Z")

</div>

@sks can you share the rasa version and webchat snippet code please for reference?

---

<div class="post-metadata">

### Author: ![sks](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sks](https://forum.rasa.com/u/sks)
#### Post date: [September 22, 2021, 3:33pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/3 "2021-09-22T15:33:36Z")

</div>

Rasa version: 2.8.1, Rasa x = 0.39.3

---

<div class="post-metadata">

### Author: ![sks](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sks](https://forum.rasa.com/u/sks)
#### Post date: [September 22, 2021, 3:37pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/4 "2021-09-22T15:37:06Z")

</div>

![Screenshot 2021-09-22 at 9.06.47 PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/8/c/8c08a1d576755d23168e4ca13123d45ce1388b18.png)

---

<div class="post-metadata">

### Author: ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)
#### Post date: [September 22, 2021, 3:41pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/5 "2021-09-22T15:41:51Z")

</div>

@sks check your socketUrl it should have some IP address with https or http; I hope you must be aware of this GitHub repo : [https://github.com/botfront/rasa-webchat](https://github.com/botfront/rasa-webchat)@sks Even I can see there is not version mention in the code

```
"https://cdn.jsdelivr.net/npm/rasa-webchat@1.0.1/lib/index.js"),

```

@sks I’d recommend just first try run the rasa webchat snippet code on local machine and then try to implement over GCP.

I hope you got my points?

---

<div class="post-metadata">

### Author: ![sks](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sks](https://forum.rasa.com/u/sks)
#### Post date: [September 22, 2021, 3:49pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/6 "2021-09-22T15:49:11Z")

</div>

Hey. Thanks for the reply. It actually works on localhost and my server ip is [http://34.133.142.180](http://34.133.142.180).

---

<div class="post-metadata">

### Author: ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)
#### Post date: [September 22, 2021, 3:50pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/7 "2021-09-22T15:50:26Z")

</div>

@sks Try update and experiment please or try use ngrok for the same.

---

<div class="post-metadata">

### Author: ![sks](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sks](https://forum.rasa.com/u/sks)
#### Post date: [September 22, 2021, 3:51pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/8 "2021-09-22T15:51:40Z")

</div>

ok. will try using ngrok.

---

<div class="post-metadata">

### Author: ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)
#### Post date: [September 22, 2021, 3:52pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/9 "2021-09-22T15:52:07Z")

</div>

@sks Cool, next time please mention me with @ and nik202

---

<div class="post-metadata">

### Author: ![sks](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sks](https://forum.rasa.com/u/sks)
#### Post date: [September 22, 2021, 3:55pm UTC](https://forum.rasa.com/t/socketio-not-working-in-gcp/47921/10 "2021-09-22T15:55:30Z")

</div>

@nik202 Sure
