Hello,
new to mediasoup and trying to get a basic demo up so we can complete the initial review of the documentation etc.
our set up is
hosts file
127.0.0.1 base.ms
generated .pem with
openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=base.ms" -newkey rsa:2048 -keyout /home/ssl/private/base.ms.key -out /home/ssl/certs/base.ms.crt;
openssl x509 -in base.ms.crt -out base.ms.pem
cp base.ms.key base.ms.key.pem
and the config.js
// Listening hostname (just for `gulp live` task).
domain : process.env.DOMAIN || 'base.ms',
// Signaling settings (protoo WebSocket server and HTTP API server).
https :
{
listenIp : '172.17.0.2',
// NOTE: Don't change listenPort (client app assumes 4443).
listenPort : process.env.PROTOO_LISTEN_PORT || 4443,
// NOTE: Set your own valid certificate files.
tls :
{
cert : process.env.HTTPS_CERT_FULLCHAIN || `/home/ssl/certs/base.ms.pem`,
key : process.env.HTTPS_CERT_PRIVKEY || `/home/ssl/private/base.ms.key.pem`
}
},
I am confused as to what ip to put in the
listenIp
field for a docker container running in wsl2.
Reading several posts I understand that using 0.0.0.0 will cause the an error (no connection).
So using
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mediasoup
172.17.0.2
so we added this but get an error
WebSocket connection to ‘wss://base.ms:4443/?roomId=ymnsg2zj&peerId=uafbqkl8’ failed: WebSocket opening handshake timed out
using 0.0.0.0 the ui connects and I don’t get these error, but no A/V
What is the correct binding IP I should use?
After searching the docs I also could not find the correct ports to open,
rtcMinPort : process.env.MEDIASOUP_MIN_PORT || 40000,
rtcMaxPort : process.env.MEDIASOUP_MAX_PORT || 41001
I assume the port range should be 40000 - 41001
Thanks
Art