title: Dotcloud www and TCP in single app -
body: <p>I'm trying to get a nodejs socket server running that will allow remote communication between two clients running a Flash game that communicates using a custom protocol. Due to Flash security restrictions, it seems that the socket server must be running on the same host as the web server that servers the Flash game. I've been continuously getting the following error:</p>
  
  <pre><code>The service crashed at startup or is listening to the wrong port. It failed to respond on port "nodejs" (8080) within 30 seconds
  </code></pre>
  
  <p>What I need is a way to run my nodeJS server code, while simultaneously serve the flash files.</p>
  
  <p>I'm using the environment JSON variables to determine what port to listen on, and my YML is similar to the one discussed <a href="http://answers.dotcloud.com/question/340/simple-tcpudp-service-in-nodejs" rel="nofollow">here</a> but no luck...
  Just wondering if I can get some info on how to create a working socket server/web server that will work for this (or if it is actually possible)</p>