# What is the best method to determine if a remote PipeTransport has disconnected indefinitely?

**URL:** <https://mediasoup.discourse.group/t/what-is-the-best-method-to-determine-if-a-remote-pipetransport-has-disconnected-indefinitely/4719>\
**Category:** Off Topic\
**Created:** [November 20, 2022, 5:28am UTC](https://mediasoup.discourse.group/t/what-is-the-best-method-to-determine-if-a-remote-pipetransport-has-disconnected-indefinitely/4719 "2022-11-20T05:28:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BronzedBroth](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@BronzedBroth](https://mediasoup.discourse.group/u/BronzedBroth)\
**Post date:** [November 20, 2022, 5:28am UTC](https://mediasoup.discourse.group/t/what-is-the-best-method-to-determine-if-a-remote-pipetransport-has-disconnected-indefinitely/4719/1 "2022-11-20T05:28:49Z")

</div>

Working with new hosts and finding with one specifically their DDOS support is essentially to vacuum up all the connections temporarily and let them back in slowly but during this process connected pipes indefinitely disconnect and don’t recover leading to black screens.

I’m wondering what would be the best way to determine this disconnect.

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [November 20, 2022, 8:20am UTC](https://mediasoup.discourse.group/t/what-is-the-best-method-to-determine-if-a-remote-pipetransport-has-disconnected-indefinitely/4719/2 "2022-11-20T08:20:46Z")

</div>

Periodic ping/pong messages through sctp sent and received by DataProducer and DataConsumer.

---

<div class="post-metadata">

**Author:** ![BronzedBroth](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@BronzedBroth](https://mediasoup.discourse.group/u/BronzedBroth)\
**Post date:** [November 20, 2022, 12:55pm UTC](https://mediasoup.discourse.group/t/what-is-the-best-method-to-determine-if-a-remote-pipetransport-has-disconnected-indefinitely/4719/3 "2022-11-20T12:55:35Z")

</div>

Appreciated, I know we’re to assume connection for the most part but stability of such can go from 100 to 0; I’ll play around with sctp thanks.

---

<div class="post-metadata">

**Author:** ![BronzedBroth](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@BronzedBroth](https://mediasoup.discourse.group/u/BronzedBroth)\
**Post date:** [November 23, 2022, 5:17am UTC](https://mediasoup.discourse.group/t/what-is-the-best-method-to-determine-if-a-remote-pipetransport-has-disconnected-indefinitely/4719/4 "2022-11-23T05:17:02Z")

</div>

Testing this out with pipe transports (remote) different servers and port 5000 and SCTP is enabled, I do get the DataProducer ID but after connecting pipetransports there’s no evidence of this ID to be consumed.

I get the following error:  
DataProducer with id “63995fe8-0876-4108-b404-4c368f51a5f6” not found.

I don’t believe I’m doing anything wrong, I can see it locally no problem.
