title: Heroku- Web process failed to bind to $PORT within 90 seconds of launch. TooTallNate Websockets
body: <p>I'm using a tootallnate websockets server listening for connections from a website.</p>
  
  <p><b>How do I make a connection to my server on heroku?</b> </p>
  
  <p>When my website tries to connect at</p>
  
  <pre><code>wss://Heroku-Name-39329.herokuapp.com/
  </code></pre>
  
  <p>or</p>
  
  <pre><code>wss://Heroku-Name-39329.herokuapp.com:5000/
  </code></pre>
  
  <p>My heroku logs output.</p>
  
  <pre><code>at=error code=H10 desc="App crashed" method=GET path="/" host=wss://Heroku-Name-39329.herokuapp.com request_id=4afca002-2078-439c-85dc-ad6ef7db50d2 fwd="207.244.77.23" dyno= connect= service= status=503 bytes=
  </code></pre>
  
  <p>And then(Still Heroku Logs)</p>
  
  <pre><code>Error R10 (Boot timeout) -&gt; Web process failed to bind to $PORT within 90 seconds of launch
  Stopping process with SIGKILL
  Process exited with status 137
  State changed from starting to crashed
  State changed from crashed to starting
  Starting process with command `java $JAVA_OPTS -cp target/classes/:target/dependency/* v1.a1.server
  </code></pre>
  
  <p>My javascript logs</p>
  
  <pre><code>WebSocket connection to 'wss://Heroku-Name-39329.herokuapp.com/:5000/' failed: Establishing a tunnel via proxy server failed.
  </code></pre>
  
  <p>My Apps set within the server are.</p>
  
  <pre><code>String host = "";
  int port = 5000;
  </code></pre>
  
  <p>My Procfile</p>
  
  <pre><code>web: java $JAVA_OPTS -cp target/classes/:target/dependency/* v1.a1.server
  </code></pre>