android - Google Cloud Messaging local testing on an external device -


i'm trying implement google cloud messaging app in development. i'm following walkthrough located in readme this github repository (the official google sample project). i'm doing that's asked, i'm confused how test this. far know have backend running computer (i can connect backend localhost:8080 in chrome), want test device registration external device (samsung galaxy s4). realize device cannot try connect 10.0.2.2 because makes device think it's connecting localhost on phone itself. tried entering computer's ip address both ports 8080 , 80, request times out before happens. i'm have correct server api key , sender id.

is there might wrong here? how can connect computer phone? i'm willing post code and/or error logs if needed. running linuxmint 17.2 x64.

if on same network , type internal ip address of computer followed port number , can test in browser in phone


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -