Skip to content

Comment on Ask HN: upd to http

Comments

A shared hosting account might let you run a UDP listening process; a virtual host definitely would.

Really, anyplace you have a shell account can probably serve the same role as your home server.

joOP

thanks you. I didn't think any shared hosts would allow UDP listening, I'll look around for that.

I haven't read the fine print to see if it's allowed by their terms of service, but I just tried setting up a simple UDP-to-HTTP relay on Dreamhost:

  % 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.
joOP

Great, thanks. And thanks for the cli paste - I had not heard of 'nc'.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.