# After custom signalling, remote peers not able to consume/produce to mediasoup server running locally

**URL:** https://mediasoup.discourse.group/t/after-custom-signalling-remote-peers-not-able-to-consume-produce-to-mediasoup-server-running-locally/5053
**Category:** Deployment & Scalability
**Created:** [March 15, 2023, 1:06pm UTC](https://mediasoup.discourse.group/t/after-custom-signalling-remote-peers-not-able-to-consume-produce-to-mediasoup-server-running-locally/5053 "2023-03-15T13:06:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vaibhavmuchandi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/vaibhavmuchandi/32/954_2.png) [@vaibhavmuchandi](https://mediasoup.discourse.group/u/vaibhavmuchandi)
#### Post date: [March 15, 2023, 1:06pm UTC](https://mediasoup.discourse.group/t/after-custom-signalling-remote-peers-not-able-to-consume-produce-to-mediasoup-server-running-locally/5053/1 "2023-03-15T13:06:28Z")

</div>

Hi, I have a mediasoup-server running on my local machine  
I have built a custom library to facilitate signalling through hole-punched network wherein a remote peer can signal to mediasoup-server running locally on my machine  
As I can see that, I have all the transports opened  
Producers and Consumers are being created as expected  
But unfortunately they are not able to produce/consume  
Is it because mediasoup cannot function behind NAT ? Or am I missing something over here ?

 ![image](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/1/173c8f3c067a67c7a6dc105e1d5580797f336661.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/1/1e8d7b487f5ecc635777141f98f2949de3e7e6ac.png)

Here is my `chrome://webrtc-internals` where you can see that the inbound/outbound is empty  
Where as when I connect 2 peers locally within my system, everything seems to be working fine  
Is there a condition like we need a Non-NAT ip to get mediasoup to function correctly for remote peers ?

---

<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: [March 15, 2023, 1:23pm UTC](https://mediasoup.discourse.group/t/after-custom-signalling-remote-peers-not-able-to-consume-produce-to-mediasoup-server-running-locally/5053/2 "2023-03-15T13:23:34Z")

</div>

> [@vaibhavmuchandi](#):
>
> Is it because mediasoup cannot function behind NAT ?

No, unless you redirect ports. Explained in the docs and in the FAQ in the website.

---

<div class="post-metadata">

### Author: ![vaibhavmuchandi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/vaibhavmuchandi/32/954_2.png) [@vaibhavmuchandi](https://mediasoup.discourse.group/u/vaibhavmuchandi)
#### Post date: [March 20, 2023, 11:09am UTC](https://mediasoup.discourse.group/t/after-custom-signalling-remote-peers-not-able-to-consume-produce-to-mediasoup-server-running-locally/5053/3 "2023-03-20T11:09:09Z")

</div>

Is it because mediasoup implements ICE Lite ?  
Is there a way in which we can initiate ICE Connections in a mediasoup-server ?

---

<div class="post-metadata">

### Author: ![vaibhavmuchandi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/vaibhavmuchandi/32/954_2.png) [@vaibhavmuchandi](https://mediasoup.discourse.group/u/vaibhavmuchandi)
#### Post date: [March 27, 2023, 7:10am UTC](https://mediasoup.discourse.group/t/after-custom-signalling-remote-peers-not-able-to-consume-produce-to-mediasoup-server-running-locally/5053/4 "2023-03-27T07:10:58Z")

</div>

@ibc is it possible to disable ICE-Lite or have Mediasoup mediaserver configured with custom STUN/TURN ? How can one inititate a connection with a mediasoup ms running behind NAT without the going through the confusing process of having to open ports/do portforwarding ?

---

<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: [March 27, 2023, 7:36am UTC](https://mediasoup.discourse.group/t/after-custom-signalling-remote-peers-not-able-to-consume-produce-to-mediasoup-server-running-locally/5053/5 "2023-03-27T07:36:33Z")

</div>

No, it’s not possible. mediasoup is ICE-Lite and must run with public IPs or port redirection. The docs clearly say it.
