bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.91k stars 1.5k forks source link

Clients unable to connect to RTSP using mobile network but able through WiFi #1523

Closed Computershik73 closed 1 year ago

Computershik73 commented 1 year ago

Which version are you using?

v0.21.5

Which operating system are you using?

Describe the issue

I use RealPlayer on Symbian and VLC Player on Android to connect to my stream. If I use Wi-Fi, the video plays well. If mobile network - for most cell providers - infinite loading and "unable to connect" after some time. Some cell providers work however. If I re-stream the stream with live555 streaming proxy (from port 8554 to 8853, for example) - the stream over mobile network works

Describe how to replicate the issue

  1. start the server
  2. publish with ffmpeg -re -stream_loop -1 -i "http://78.25.155.47:1309/channel/Perv_SD.ts" -b:v 400k -f rtsp -rtsp_protocols tcp "rtsp://localhost:8554/perv"
  3. read with RealPlayer or VLC - open the url "rtsp://localhost:8554/perv"

Did you attach the server logs?

yes

Did you attach a network dump?

no

Computershik73 commented 1 year ago

Logs through mobile network (playing fails) logg.txt

Computershik73 commented 1 year ago

Logs through WiFi (playing works) loggwi.txt

Computershik73 commented 1 year ago

Changing port to 554 solved the issue. This was not mentioned in your guides.

aler9 commented 1 year ago

Hello, from the logs it seems that you're publishing and reading a stream with the UDP protocol, which may be blocked by your mobile network provider or can't be used when there's a NAT between client and server. Disable support for UDP as mentioned in the README. The port has nothing to do with this.

github-actions[bot] commented 12 months ago

This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.