ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.79k stars 5.28k forks source link

My own ICE/TURN/STUN server #3821

Closed alex-drinkwater closed 9 months ago

alex-drinkwater commented 9 months ago

Is there an environment variable for ICE servers? I'd like to know which ICE server this project uses. If there isn't an environment variable for this then I'd like to know where it's hardcoded so I can change it myself, as I am hosting my own eturnal server.

Thank you.

winlinvip commented 9 months ago

SRS implements SFU, based on the ice-lite mode. This means it has an IP address that provides services to the outside world. Therefore, it no longer needs an ICE or TURN server to communicate with the client.

In simple terms, you can think of SRS SFU as a regular server. The client can directly access this server's IP to push and pull streams, so there's no need for additional ICE and TURN servers.

The reason we need ICE and TURN servers is when two clients don't go through SFU, but directly P2P. They need to go through the ICE server for hole punching, or relay through TURN.

TRANS_BY_GPT4