I've been noted by my colleagues that you've already been mailed quite some time ago.
For others, refer to this post.
(I'm replying to this post as it says solved but with no solution).
For the actual demo application, see here:
Make sure to change YOURPORT and YOURIP.