deepch / RTSPtoWebRTC

RTSP to WebRTC use Pion WebRTC
MIT License
1.6k stars 419 forks source link

Connection fails if server is on another network #222

Open maxim729467 opened 1 year ago

maxim729467 commented 1 year ago

I expect to connect to the stream even if the server is behind NAT and I'm on another network, but it does not work. When the server is publicly available or I am on the same network, it works perfectly.

Should it work despite of being behind NAT when the server and the client exhanged sdp? Isn't it the purpose of stun servers defined in config.json?

MI-Class commented 8 months ago

I also encountered the same situation