Everything works fine in my local environment, but after deploying to staging, I only see a black screen.

We’re using DigitalOcean and Docker, and I’ve also opened RTC ports on my DigitalOcean droplet.

Does anyone have any insights on this?

I hate docker/K8s, I would assume you’re needing to allow outside access. Port-forwarding. Can’t advise further but you may find guides on that.

1 Like

Use docker network mode host, disable all firewall rules.
The easy test would be making an express server listen on port 40000 for example, then trying to access it from outside. If you can not access it then it is your configuration issue. You can hire someone to solve it.

1 Like

As per mediasoup documentation listenIps is DEPRECATED. Use listenInfo instead.

webRtcTransport: {
    listenInfos: [
        {
            protocol: 'udp',
            ip: '0.0.0.0',
            announcedAddress: '159.223.176.173',
            portRange: { min: 40000, max: 40100 },
        },
        {
            protocol: 'tcp',
            ip: '0.0.0.0',
            announcedAddress: '159.223.176.173',
            portRange: { min: 40000, max: 40100 },
        },
    ],
}

As Nam suggested, try also running Docker with network_mode: 'host' and ensure that all firewall rules are disabled.

1 Like

Running Docker in host mode fixed this error. Thanks for the help, everyone