0

I try to make webRTC app work under corporate firewall that allows only 80 and 443 tcp port, but webRTC use random port(49152-65535). How can i reach?

igracia
  • 3,543
  • 1
  • 18
  • 23
Andrew Dormi
  • 119
  • 8

2 Answers2

2

The solution is to setup a TURN server which is capable to handle traffic on TCP 80 and 443 or use a client library which solves this problem by default (such as the mizu webphone).

Istvan
  • 1,591
  • 1
  • 13
  • 19
  • Thank you for answer! Can you please show example of TURN server configuration? – Andrew Dormi Mar 24 '16 at 13:19
  • Just setup a turn server such as rfc5766-turn-server and make sure to enable TCP on 80 (and TLS on 443 if you need that also). Then just add this turn server to your webrtc client config and it will detect it automatically (if there is no better way to route the media, such as direct UDP). – Istvan Mar 25 '16 at 13:46
0

You could give coturn a try, it supports TCP transport by default, and if the NAT is very strict and blocks all ports( even outgoing ones) other than 80 and 443, you can set the listening-port as 80 and tls-listening-port as 443 in the TURN server configuration before starting it.

mido
  • 24,198
  • 15
  • 92
  • 117