AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
4.65k stars 378 forks source link

webRTC does not work from some IPs #914

Open mainmaster opened 8 months ago

mainmaster commented 8 months ago

Hello! I'm using go2rtc on a server with an external IP and using external port 8555 and thought that now they could easily connect to me. However, I notice that some users can watch the video, but some cannot. With what it can be connected?

streams:
  enter:
    - rtsp://admin:admin@192.168.90.157:554/ISAPI/Streaming/Channels/102
  exit:
    - rtsp://admin:admin@192.168.90.158:554/ISAPI/Streaming/Channels/102
  street:
    - rtsp://admin:admin1234@192.168.90.159:554/RVi/1/1
api:
  listen: ":1984"    # default ":1984", HTTP API port ("" - disabled)
  origin: "*"        # default "", allow CORS requests (only * supported)
webrtc:
  candidates:
    - 85.*.*.*:8555  # if you have static public IP-address
log:
  level: debug  # default level
  api: debug
  exec: debug
  ngrok: debug
  rtsp: debug
  streams: debug
  webrtc: debug

username: "admin"  # default "", Basic auth for WebUI
password: "admin12345"   # default "", Basic auth for WebUI
AlexxIT commented 8 months ago

Are you sure 8555 port on your public IP properly forwarded to go2rtc app?

mainmaster commented 8 months ago

Are you sure 8555 port on your public IP properly forwarded to go2rtc app?

should the port have UDP or TCP protocol? I noticed that TCP is installed everywhere. Perhaps this is the problem?

AlexxIT commented 5 months ago

In your setup you have fixed TCP port and random UDP port