Setup a server using node.js (coding it) , and then connect C2 to that server and send messages between the two ...
I will quote this excellent post from mars , he helped me shed light on my ignorance xD
Let me help you understand and setup a basic home server
FYI: I would recommend that you DON'T do this on your primary home computer - try setting this on on a old computer if you have one. You don't want to mess up your primary computer.
Or you could eventually set one up as a virtual machine using VMWare Workstation but that's a whole other topic.
Anyways: Follow these steps and you should understand what Node.js is and how to setup a simple home web server. Please watch these in order and entirety.
1. What Node.js is:
2. How to install Apache Web Server on Windows:
**If you have a domain name then you can use it instead of localhost and simple go to your domain registrar and create an A Record that points to your home computers IP address:
http://whatismyipaddress.com *If its static and your internet provider allows it.
Download Apache Latest Stable Version:
3. How to install node.js on Windows with Apache already installed - and setup a simple chat application
Download and install the latest node.js for windows:
This isn't the easiest thing in the world to do - if you get stuck - remember to Google or YouTube it first - there is a lot of good information out there.
*Updated Broken Links
Finally , here's a home-made tutorial from one of the members