Webrtc from API Gateway configuration and ports

Hi,

Attached diagram is the network setup of my environment.

Will need to load video using webrtc protocol through Api Gateway.

Could not find the ports required or any information regarding STUN/TURN server in the official documents so will need the following information.

  1. ports required for webrtc (based on the network setup diagram)

  2. is there a need to setup TURN server? if yes, please advise on where to install it, the configuration and ports

Thanks

Hey Chee

Ports needed for WebRTC signaling (setting up communication between clients) are the same ports used for REST communication. By default that would be port 80 and 443. Ports used between clients cannot be limited and RTP communication from the API Gateway have be allowed in order for WebRTC to function properly. The idea is to use the same functionlity as used by brothers, which allow the operating system to assign which ports to use.

Regarding placement of STUN and TURN servers is only required if the client or the API Gateway is behind a Symmetric NAT firewall. If that is the case, then you should place a TURN server in an area where both the client and the API Gateway can access it. My guess would be that in your diagram that would be in IT/OT area. TURN servers have default ports (3478), but as you control the client you can assign any port fits you.

Let me know if you have further questions based on my answer or if anything is unclear.