# Websocket Error in Ionic 4

**URL:** <https://forum.ionicframework.com/t/websocket-error-in-ionic-4/194146>\
**Category:** ionic-v3\
**Created:** [August 9, 2020, 3:53am UTC](https://forum.ionicframework.com/t/websocket-error-in-ionic-4/194146 "2020-08-09T03:53:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopalKrisKross](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@gopalKrisKross](https://forum.ionicframework.com/u/gopalKrisKross)\
**Post date:** [August 9, 2020, 3:53am UTC](https://forum.ionicframework.com/t/websocket-error-in-ionic-4/194146/1 "2020-08-09T03:53:28Z")

</div>

I am developing an app to work on ANDROID TV. and android mobile. I need to push data from my Server to App using the Local LAN network.  
I am using Websockets to set up the communication channel to receive data  
When I do IONIC SERVE and open it in a browser in a PC, the Websocket connection opens and am able to receive data sent from the server.  
But when I open this on the App the same is not working and the web socket Opening returns an error.  
Have tried various options like opening in Iframe using proxy etc…  
When I monitor the IP of the mobile, There is no network traffic generating when I try to establish the connection. Which says the Socket connection is not getting opened.  
Can anyone help why this is happening. Awaiting resolution …

---

<div class="post-metadata">

**Author:** ![juanchoy121990](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/juanchoy121990/32/134717_2.png) [@juanchoy121990](https://forum.ionicframework.com/u/juanchoy121990)\
**Post date:** [October 29, 2020, 4:01pm UTC](https://forum.ionicframework.com/t/websocket-error-in-ionic-4/194146/2 "2020-10-29T16:01:04Z")

</div>

Hello, you could solve it, the same thing happens to me. ☹

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [October 29, 2020, 4:12pm UTC](https://forum.ionicframework.com/t/websocket-error-in-ionic-4/194146/3 "2020-10-29T16:12:32Z")

</div>

I’m using [this Plugin](https://github.com/HomeControlAS/cordova-plugin-advanced-websocket) for Websocket Connection to make sure it works on native level
