It sounds like you did not understand yet that making a server from C2 is not possible.
Browsers can't act as a server so your server application HAS to be an external application. All you can do from your browser is the client.
The client will be your application (using the websocket plugin) so it won't make a "cmd window" and still be able to communicate with a server.
But still, your server has to be an application (external to the browser).
You could consider making your server in CC (with the podsix library or scidave's network plugin).
You would still have a window displayed and your user would have to first launch said-server before connecting to it through its IP.