failed to connect to /127.0.0.1 (port 80) in GCM android app using eclipse

I trying to make an android app using GCM … the app run and I fill the form BUT when I click register button, the following error occurs: (my php page doesn’t change that’s mean it doesn’t register me!!)

    05-13 04:22:23.495: E/URL(12039): > http://127.0.0.1/gcm_server_php/register.php
05-13 04:22:23.590: E/AndroidHive GCM(12039): Failed to register on attempt 1:java.net.ConnectException: failed to connect to /127.0.0.1 (port 80): connect failed: ECONNREFUSED (Connection refused)

I know what the error BUT how to fix it?

note that I use appserv.


Source: New Questions

Leave a Reply