Reputation: 269
I have a program running on a local computer listening for UDP packets on a specific port. I would like a website that when a user presses a button, a UDP packet gets sent from this device locally without any 3rd party servers or computers interacting with it. How would I be able to do this?
Upvotes: 0
Views: 1665
Reputation: 48387
Browsers do not support anything other than HTTP, HTTPS and sometimes FTP, RTSP. You can't use different application layer protocol. You can't use UDP.
If you control the client, you could create a custom MIME type, associate it with a program on the client which sends the packet and serve it up from your website.
Upvotes: 1