title: ip address for google app engine node js docker application
body: <p>This is related to the stackoverflow question here: <a href="https://stackoverflow.com/questions/27238010/run-websocket-on-gae">Run Websocket on GAE</a> and also follows from a previous question I asked here: <a href="https://stackoverflow.com/questions/28559921/google-app-engine-ip-of-docker-custom-runtime-container-node-js">Google app engine: IP of docker custom runtime container, node.js</a>.</p>
  
  <p>As per the second question, I am trying to deploy a version of <a href="https://github.com/mozilla/BrowserQuest" rel="nofollow noreferrer">mozilla's browserquest</a> in a production google custom runtime nodejs environment with boot2docker parameters as follows:</p>
  
  <pre><code>docker version
  Client version: 1.5.0
  Client API version: 1.17
  Go version (client): go1.4.1
  Git commit (client): a8a31ef
  OS/Arch (client): darwin/amd64
  Server version: 1.5.0
  Server API version: 1.17
  Go version (server): go1.4.1
  Git commit (server): a8a31ef
  </code></pre>
  
  <p>I've run the app in a sandboxed copy of the production environment locally with success by using the boot2docker ip address.</p>
  
  <p>However I don't know what ip address I should use when deploying to production.  My app is at an <a href="http://[appname].appspot.com" rel="nofollow noreferrer">http://[appname].appspot.com</a> address, but I gather that one cannot go through that domain to access the server; I have tried pinging my app and using that ip to configure my scripts, that doesn't work.</p>
  
  <p>Hence I was wondering if it is possible to either</p>
  
  <ul>
  <li>force a docker container in a google app engine custom runtime deployment to have a certain ip address, so that code can be preconfigured for it, or</li>
  <li>using something like <a href="https://github.com/jpetazzo/pipework" rel="nofollow noreferrer">jpettazo's pipework project</a>, autoconfigure the deployment by somehow determining the ip of the container while deploying, and then when the app tries to access the server (say when one has created a character and clicks a button to start the game), it makes a call to the function that provides the relevant ip address.</li>
  </ul>