Registration With Endpoints Server FAILED (App Engine Connected Android Project)
I am new to Android programming and Google App Engine. I followed the below documentation to run a sample app which registers my device: https://developers.google.com/eclipse/docs/
Solution 1:
I had a similar problem and solved it by setting
LOCAL_APP_ENGINE_SERVER_URL = "http://[myLocalIp]:8888"
where myLocalIp
is your ipv4-address which you can find by opening cmd.exe
from your start menu and writing ipconfig
.
Make sure to edit the correct SERVER_URL
string in CloudEndpointUtils.java
. I think it uses LOCAL_APP_ENGINE_SERVER_URL_FOR_ANDROID
by default.
For this to work i also had to change the run configurations for the backend project. In Eclipse: select the server project -> right click -> Run as -> Run Configurations. Select the Arguments pane and in Program Arguments, add --address=0.0.0.0
in front of the --port=8888
.
Post a Comment for "Registration With Endpoints Server FAILED (App Engine Connected Android Project)"