# strange behaviour of mediasoup

**URL:** <https://mediasoup.discourse.group/t/strange-behaviour-of-mediasoup/6208>\
**Category:** Deployment & Scalability\
**Created:** [August 14, 2024, 5:16am UTC](https://mediasoup.discourse.group/t/strange-behaviour-of-mediasoup/6208 "2024-08-14T05:16:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepansh-maurya](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/deepansh-maurya/32/2667_2.png) [@deepansh-maurya](https://mediasoup.discourse.group/u/deepansh-maurya)\
**Post date:** [August 14, 2024, 5:16am UTC](https://mediasoup.discourse.group/t/strange-behaviour-of-mediasoup/6208/1 "2024-08-14T05:16:09Z")

</div>

while creating the transport on the server side, when i am using the private ip there all the things are fine. But when i use my public ip then mediasoup shows strange behavior that  
, the connection is failing or disconnected ( on webrtc internals) but but i am successfully sending the stream to the server and the consumer is also receiving the stream on client from server and the consumer video buffers all the time

---

<div class="post-metadata">

**Author:** ![masonyunforlearning](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/masonyunforlearning/32/1670_2.png) [@masonyunforlearning](https://mediasoup.discourse.group/u/masonyunforlearning)\
**Post date:** [August 29, 2024, 7:51am UTC](https://mediasoup.discourse.group/t/strange-behaviour-of-mediasoup/6208/2 "2024-08-29T07:51:32Z")

</div>

Hello

I think if you give more information about your environment settings. Is it deployed on Cloud service ?? Is server behind NAT ??  
You need to consider port forwarding or listenIp setting when you make WebRTC Transport
