1 points · by jo · 17y ago · 4 comments
I need to get a UDP packet to HTTP (on my shared webhost) UPD because a small microcontroller (low cost sensor) generates the packet. To HTTP because my webhost doesn't allow socket connections beside port 80.
I'm using a home server right now to catch the UDP packet and then pass along the data to the webhost over HTTP. But can't use that long term.. Any web service available for this, or some tips?
Trying to keep things cheap and simple for this side project.
Really, anyplace you have a shell account can probably serve the same role as your home server.
% nc -u -l -p 59595 | xargs -I UDP curl http://example.com/path?u=UDP
...and it worked just fine. I would think as long as the traffic is a tiny fraction of what web traffic would be -- and occasional UDP packets fit that bill -- they might either officially allow it or just not mind.