5

I'm about to roll out an implementation of GCM on a server and need to open the appropriate firewalls by IP.

Does anyone know where I can find the IP address range for android.googleapis.com ?

Thanks!

Dave
  • 329
  • 2
  • 6
  • 17

3 Answers3

5

I have found that the IP ranges for android.googleapis.com are not published.

Dave
  • 329
  • 2
  • 6
  • 17
  • if the ports are opened for the dns android.googleapis.com on proxy firewall will it work fine and allow device to use GCM on proxy instead of Open 3g or 4g network ? – Piyush Agarwal Aug 27 '13 at 19:06
2

According to https://developers.google.com/cloud-messaging/http:

GCM doesn't provide specific IPs, so you should allow your firewall to accept outgoing connections to all IP addresses contained in the IP blocks listed in Google's ASN of 15169.

And a ServerFault question links to the following lists of IP ranges contained within ASN 15169:

Community
  • 1
  • 1
John Mellor
  • 12,572
  • 4
  • 46
  • 35
1

This may or may not be what you want, but you can just run "nslookup android.googleapis.com" from cmd (Windows) or bash (*nix). My results are:

nslookup android.googleapis.com
Server:  UnKnown
Address:  192.168.1.130

Non-authoritative answer:
Name:    googleapis.l.google.com
Addresses:  2001:4860:b007::5f
          74.125.142.95
Aliases:  android.googleapis.com
Chiggins
  • 8,197
  • 22
  • 56
  • 81