title: GCM Android demo error when connecting to device
body: <p>I am trying to learn about GCM and a newbie at this...I am running the demo at: <a href="http://developer.android.com/guide/google/gcm/demo.html" rel="nofollow noreferrer">http://developer.android.com/guide/google/gcm/demo.html</a>. However, I can get my device(HTC S) registered because of the following error:</p>
  
  <pre><code>java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 8080): connect failed: ECONNREFUSED (Connection refused)
  </code></pre>
  
  <p>In my Activity I am getting this message : <code>From GCM: device successfully registered!</code></p>
  
  <p>And then getting these messages: Trying (attempt %1$d/%2$d) to register device on Demo Server</p>
  
  <p>These are the parameters for my application: </p>
  
  <pre><code>static final String SERVER_URL ="http://localhost:8080/Server_Demo";
  
  static final String SENDER_ID = "902733651294";
  </code></pre>
  
  <p>I have a hunch that this has to do with how my network is defined on my computer and/or my device...
  Any help would be greatly appreciated!</p>
  
  <p>EDIT: Picture of web server thru a "Dynamic web project" using Eclipse.
  <img src="https://i.stack.imgur.com/FdCLY.png" alt="enter image description here"></p>