3

Hi i am trying to register my server ip for gcm notification.

My test server url was http://xxx.xxx.x.xxx/mHealth_new/

and it was working fine...than i changed ip to live which is http://xxx.xx.xxx.xx:8086/mhealth_app/

but i cant configure this url with port 8086 it gives me error

enter image description here please help me....

H Raval
  • 1,903
  • 17
  • 39
  • have you checked the port `8086` if it's already opened? – Scar Mar 28 '16 at 10:08
  • yes...i can access it – H Raval Mar 28 '16 at 10:11
  • 1
    Try creating a new Server Key and API key for the production server. Then create a new Sender ID and register a device to test if it is working. Here is a previous SO question related on [how to implement server for GCM](http://stackoverflow.com/questions/32322631/adding-google-cloud-messagin-gcm-for-android-registration-process). – Mr.Rebot Mar 29 '16 at 06:45

1 Answers1

1

In "Accept requests from these server IP addresses" section, you should fill the IP address of your current server, which is xxx.xx.xxx.xx. 8086 is the port number you use to access your server using http, not the port number used when your server sends the request to gcm server. The port that is used to send the request to gcm server is randomly assigned by the operating system.

v7d8dpo4
  • 1,399
  • 8
  • 9