• 1
name Punditsdkoslkdosdkoskdo

Why no UDP connection via browser even with HTML5?

why we can not have udp connection between a browser and a server? Why tcp connection is possible (web socket) but not udp?


HTML5 does not allow arbitrary TCP connections.

Instead, web sockets is a special new protocol built on on TCP that allows bidirectional communication.

Similarly, WebRTC is a special new protocol built on UDP that allows peer-to-peer communication.

Allowing arbitrary socket connections would be a major security hole.

  • 0
Reply Report