A proxy server for on-demand socket applications