APNS/GCMと端末間の通信

いわゆるプッシュ通知。

プッシュと言いつつ端末からプルしてるんじゃないかと思ったら、通信を張りっぱなしにするとあるので、本当にプッシュしてそうな雰囲気。

Apple / iOS / APNS

support.apple.com

IP 17.0.0.0/8 に対して、5223,2195,2196,443ポートが空いていればどうにかなりそう。 プロキシサーバーを通すと駄目とあるのが色々大変そう。

Google / Android / GCM

Implementing an HTTP Connection Server  |  Cloud Messaging  |  Google Developers

If your organization has a firewall that restricts the traffic to or from the Internet, you need to configure it to allow connectivity with GCM in order for your GCM client apps to receive messages. The ports to open are: 5228, 5229, and 5230. GCM typically only uses 5228, but it sometimes uses 5229 and 5230. 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.

ASN15169というのは詰まるところ"Googleのサーバー全部"ぐらいの意味 合いのようで、こちらなどを見ると具体的な値が判るようになっていま す。

Appleと違って指定するのがめんどそうな感じ。