Getting port bind failed when trying to run mediasoupe-sample-app

I am trying to learn the basics of mediasoup and started by installing mediasoup-sample-app.
I changed the config.js for my IP, created a ssl cert but other than that have not changed the code.
When I run I get log message for ‘client connected’ when I press the connect button on the page.

But, when I press the start webcam, share screen or subscribe buttons, I get this output and can’t seem to figure out why.

message:“port bind failed due to address not available [transport:udp, ip:‘’, port:10080, attempt:1/101]”
stack:“Error: port bind failed due to address not available [transport:udp, ip:‘’, port:10080, attempt:1/101]
at Channel._processMessage (/home/mike/mediasoup-sample-app/node_modules/mediasoup/lib/Channel.js:199:37)
at Socket. (/home/mike/mediasoup-sample-app/node_modules/mediasoup/lib/Channel.js:61:34)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:186:23)”

Well, open a bug in that project. Not a mediasoup bug.

Please, don’t try to learn about mediasoup by just looking at some 3rd party examples out there.


Any suggestions on learning is greatly appreciated. I have looked at the documentation, but without a better understanding or some tutorials its hard to know the steps necessary to get things running for the first time. The examples provide that clarity. The API docs provide information that is useful only after gaining that understanding.

Then check the official mediasoup-demo project.