RTPSession and Azure Web Apps #1333
-
Hi everyone! I've built a solution using It works perfectly when running on a VPS provided by some hostinf services, but when deployed on an Azure VPS or an Azure Web App Service, the app fails to stablish I've set up an NSG with inbound and outbound rules to allow the necessary ports, and the network does not have a NAT gateway configured. I've been troubleshooting this issue for weeks and found the following logs related to the problem:
My networking skills aren't great, and that's why I'm stuck. Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
I suspect your Azure VM is not enabled for IPv6. You could add a public IPv6 address to it or you could update your app to restrict it to only bind to the IPv4 interface:
|
Beta Was this translation helpful? Give feedback.
The BIG difference is you are now getting a public IPv4 ICE candidate from the remote peer. If you check your previous traces you'll notice the equivalent of the line below is missing. I suspect you added a STUN server to your browser webrtc config.
2025-02-26T11:56:58.5476800Z RTP ICE Channel received remote candidate: 2433181933 1 udp 1685724927 177.100.219.19 57355 typ srflx raddr 192.168.0.11 rport 57355 generation 0
The most likely reason some attemtps work and some don't is NAT on the network your browser is sitting on. To amke that relibale you'll need to use a TURN server at one of the end points. A TURN server is not ideal as it acts as a middleman for your webrtc media packets b…