# Missing STUN Requests after network disconnection

**URL:** <https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111>\
**Category:** General\
**Created:** [May 3, 2019, 3:14pm UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111 "2019-05-03T15:14:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shazzzzzzzz](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@shazzzzzzzz](https://react-native-webrtc.discourse.group/u/shazzzzzzzz)\
**Post date:** [May 3, 2019, 3:14pm UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111/1 "2019-05-03T15:14:05Z")

</div>

Hi All,

I am testing network disconnection scenarios. An audio call is established on android user. He disconnects from wifi and connects back to same wifi immediately(overall, takes about 3-5 seconds). He gets back the same IP address as well and I am not doing ICE restarts since connection must be automatically restored.

When android user reconnects, peer connection does not answer any STUN request from remote nor does it send out any new STUN requests. ICE connection never recovers by itself and call fails(ICE state - failed).

Ideally peer connection must be able to recover itself if the network connection is back before ICE connection changes to failed.

Does anybody know what’s happening here?

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [May 4, 2019, 6:56pm UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111/2 "2019-05-04T18:56:25Z")

</div>

Does it also happen when using the Chrome browser?

---

<div class="post-metadata">

**Author:** ![shazzzzzzzz](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@shazzzzzzzz](https://react-native-webrtc.discourse.group/u/shazzzzzzzz)\
**Post date:** [May 6, 2019, 11:22am UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111/3 "2019-05-06T11:22:41Z")

</div>

Hi Saghul,

Chrome/Firefox works fine with desktop environment. They are able to reconnect immediately once the network connection is back (before ICE state changes to failed).

To add more info, in my test scenario, the remote is Janus Media server.

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [May 7, 2019, 7:58am UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111/4 "2019-05-07T07:58:58Z")

</div>

> [@shazzzzzzzz](#):
>
> Chrome/Firefox works fine with desktop environment.

I meant on the same mobile device, under the same conditions. It would have to be Android though.

---

<div class="post-metadata">

**Author:** ![shazzzzzzzz](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@shazzzzzzzz](https://react-native-webrtc.discourse.group/u/shazzzzzzzz)\
**Post date:** [May 7, 2019, 12:23pm UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111/5 "2019-05-07T12:23:49Z")

</div>

The scenario works fine on Chrome Android(same device)

Setup

- Chrome 74.0.3729.136
- Android 8.1.0

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [May 7, 2019, 12:26pm UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111/6 "2019-05-07T12:26:27Z")

</div>

I can only guess this is somehow related to M69 vs M74, since there is nothing this plugin does explicitly to trigger the behavior you observe.

---

<div class="post-metadata">

**Author:** ![shazzzzzzzz](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@shazzzzzzzz](https://react-native-webrtc.discourse.group/u/shazzzzzzzz)\
**Post date:** [May 7, 2019, 2:43pm UTC](https://react-native-webrtc.discourse.group/t/missing-stun-requests-after-network-disconnection/111/7 "2019-05-07T14:43:17Z")

</div>

Thanks saghul. I guess I will have to wait for M74+ to see if there is any change in behavior.
