# Janus video session cannot re-connect when the internet connection drops for 15 seconds or more

**URL:** <https://janus.discourse.group/t/janus-video-session-cannot-re-connect-when-the-internet-connection-drops-for-15-seconds-or-more/182>\
**Category:** General\
**Created:** [April 21, 2023, 5:51pm UTC](https://janus.discourse.group/t/janus-video-session-cannot-re-connect-when-the-internet-connection-drops-for-15-seconds-or-more/182 "2023-04-21T17:51:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![njebaraj](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@njebaraj](https://janus.discourse.group/u/njebaraj)\
**Post date:** [April 21, 2023, 5:51pm UTC](https://janus.discourse.group/t/janus-video-session-cannot-re-connect-when-the-internet-connection-drops-for-15-seconds-or-more/182/1 "2023-04-21T17:51:54Z")

</div>

Janus video session cannot re-connect when the internet connection drops for 15 seconds or more. The Janus Gateway version is 0.10.4. I tried setting the session\_timeout and the reclaim\_session\_timeout property values in the janus.jcfg configuration file to 120 seconds. Unfortunately, the configuration changes did not fix the problem. I also tried setting the ice\_keepalive\_conncheck property to “true” in the Janus config file and increasing the max-allocate-timeout value in the Coturn server’s turnserver.conf file. None of the solutions worked. I am lost at this point. Any suggestions would be appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![njebaraj](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@njebaraj](https://janus.discourse.group/u/njebaraj)\
**Post date:** [January 25, 2024, 1:14pm UTC](https://janus.discourse.group/t/janus-video-session-cannot-re-connect-when-the-internet-connection-drops-for-15-seconds-or-more/182/2 "2024-01-25T13:14:57Z")

</div>

I fixed the video reconnection issue by upgrading the Janus Gateway server to version 1.2.0 and sending an offer with iceRestart=true upon ICE disconnection.

---

<div class="post-metadata">

**Author:** ![anopta](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/anopta/32/239_2.png) [@anopta](https://janus.discourse.group/u/anopta)\
**Post date:** [March 21, 2024, 4:29am UTC](https://janus.discourse.group/t/janus-video-session-cannot-re-connect-when-the-internet-connection-drops-for-15-seconds-or-more/182/3 "2024-03-21T04:29:28Z")

</div>

Hi @njebaraj are you using janode? If yes, on which socket event did you set the iceRestart to true? if no, where did you set the iceRestart to true. Thank you

---

<div class="post-metadata">

**Author:** ![njebaraj](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@njebaraj](https://janus.discourse.group/u/njebaraj)\
**Post date:** [March 21, 2024, 2:45pm UTC](https://janus.discourse.group/t/janus-video-session-cannot-re-connect-when-the-internet-connection-drops-for-15-seconds-or-more/182/4 "2024-03-21T14:45:24Z")

</div>

@anopta , The Janus’ Javascript API documentation has a sample code to restart ICE. You can find it under the “ICE restarts” section. [JavaScript API](https://janus.conf.meetecho.com/docs/JS.html) . You will need to call the following createOffer function when the newState value changes to  
“disconnected” in the iceState callback function.

echotest.createOffer(  
{  
iceRestart: true,  
success: function(jsep) {  
echotest.send({ message: { audio: true, video: true }, jsep: jsep});  
}  
});
