简体   繁体   中英

Send UDP datagram from browser using Node.js?

I need to be able to send an UDP datagram to a remote server. Main purpose is for the request to send authentication data to the server and to open an UDP port on the gateway so it can receive a video stream on that port.

Is there some possible way to achieve this? I've searched a lot and I read that javascript wouldn't allow that because of security issues which I fully understand.

Thank you

As you mentioned it's impossible with native browser technologies. JavaScript can not use any transport protocols directly. The only feasible way I know is to use Flash. You can find examples in this discussion .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM