hi. thank you for visiting my topic
so i currently develop 2 things:
client side app hosted in vercel
mediasoup app hosted in EC2 (i serve the app using caddy and nip.io for ssl)
// this is my webrtc options
export const webRtcTransport_options = () => {
const HOST_PUBLIC_IP = process.env.APP_ANNOUNCED_IP;
return {
listenIps: [
{
ip: “0.0.0.0”,
announcedIp: HOST_PUBLIC_IP, // my public elastic ip in AWS
},
],
enableUdp: true,
enableTcp: true,
preferUdp: true,
};
};
first i successfully run an for my learning app from amir essaq tutorial and it worked with above setting
this is the port range i used:
APP_RTC_MIN_PORT=2000
APP_RTC_MAX_PORT=2020
is there anything that you can give me as reference on what might be the cause?
i can’t seems to find the problem by logging, i tested on local and it work perfect, is this related to firewall?
i set env value in my worker creation like this, idk why its a problem when i host in ec2, it seems the env value not assigning
rtcMinPort: process.env.APP_RTC_MIN_PORT,
rtcMaxPort: process.env.APP_RTC_MAX_PORT,
now it works with me assigning it with a direct value