Even so, you could (my turn to shudder) use a protocol built on http like SOAP then build the front end client from there. As for finding an internal webserver, that is generally not a problem. On Windows I have recommended Xitami to a number of people with success. Free, easy to set up, works.
At the least this gets you out of writing and debugging the server...
Comment on RE (tilly) 3: Multiple clients with IO::Sockets