# Troubles using ngrok

**URL:** <https://mediasoup.discourse.group/t/troubles-using-ngrok/843>\
**Category:** mediasoup-demo\
**Created:** [April 21, 2020, 9:36pm UTC](https://mediasoup.discourse.group/t/troubles-using-ngrok/843 "2020-04-21T21:36:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![julien](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/julien/32/329_2.png) [@julien](https://mediasoup.discourse.group/u/julien)\
**Post date:** [April 21, 2020, 9:36pm UTC](https://mediasoup.discourse.group/t/troubles-using-ngrok/843/1 "2020-04-21T21:36:45Z")

</div>

Hi,

I’ve created a simple mediasoup app based on this sample app: [https://github.com/mkhahani/mediasoup-sample-app](https://github.com/mkhahani/mediasoup-sample-app)

My application works well when running the server in the console and connecting from my browser. I then tried to use ngrok to test it better. When I connect to the link created by ngrok from my computer the app works fine, but when I try to use it from another computer I cannot succeed to connect the transport. The transport connection state goes from “connecting” to “disconnected” (on the client side log).

Here is my config file:

```auto
const os = require('os');

module.exports = {
  listenIp: '0.0.0.0',
  listenPort: 3000,
  sslCrt: `${__dirname}/certs/crt.crt`,
  sslKey: `${__dirname}/certs/key.key`,
  mediasoup: {
	  
	numWorkers : Object.keys(os.cpus()).length,  
	
    // Worker settings
    worker: {
      rtcMinPort: 10000,
      rtcMaxPort: 10100,
      logLevel: 'warn',
      logTags: [
        'info',
        'ice',
        'dtls',
        'rtp',
        'srtp',
        'rtcp'
      ],
    },
    // Router settings
    router: {
      mediaCodecs:
        [
          ...
        ]
    },
    // WebRtcTransport settings
    webRtcTransport: {
      listenIps: [
        {
          ip: '192.168. ***.***',
          announcedIp: undefined
        }
      ],
      maxIncomingBitrate: 1500000,
      initialAvailableOutgoingBitrate: 1000000,
    }
  }
};

```

I tried with my public IP address or the IP address corresponding to the ngrok generated link as the webRtcTransport announcedIp, but in both of those cases the app didn’t work neither from another PC nor from mine.

If someone succeeded to use mediasoup with ngrok or another tunneling software and see where is my problem please let me now!

---

<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:** [April 21, 2020, 9:41pm UTC](https://mediasoup.discourse.group/t/troubles-using-ngrok/843/2 "2020-04-21T21:41:58Z")

</div>

This is not about mediasoup-client but about mediasoup-demo.

---

<div class="post-metadata">

**Author:** ![julien](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/julien/32/329_2.png) [@julien](https://mediasoup.discourse.group/u/julien)\
**Post date:** [April 21, 2020, 9:59pm UTC](https://mediasoup.discourse.group/t/troubles-using-ngrok/843/3 "2020-04-21T21:59:02Z")

</div>

I was indeed hesitating between both folders. Thanks for changing it
