Hi, We have downloaded the code. And we are running "jdSoft.Apple.Apns.Notifications.Test" application with proper deviceToekn, password and p12 File.
But we are getting exception as "Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 17.149.34.140:2195"
Could anyone please tell us how to resolve this.
Comment #1
Posted on May 20, 2010 by Happy LionCheck your firewalls and make sure 2195 is open. A good test is always to try telnet'ing to the server on that port as well.
Comment #2
Posted on May 20, 2010 by Helpful RhinoHi jondick, Thanks for the reply.
We had checked the port 2195 it is NOT open. We are making post notification to "gateway.sandbox.push.apple.com", whose ip is "17.149.34.143" & we are getting exception for ip "17.149.34.140:2195"
So could you please give us valid range of ips for which we can open the port 2195.
Thanks again!
Comment #3
Posted on May 20, 2010 by Happy LionOk, apple uses round robin dns (meaning they have multiple A records associated with their domains). Given that fact I'd really suggest you open ports for the domain instead of specific IP addresses.
If you MUST use IP addresses, you can simply do a DNS Lookup on the A records for 'gateway.push.apple.com', 'gateway.sandbox.push.apple.com' and for feedback you of course need 'feedback.push.apple.com' and 'feedback.sandbox.push.apple.com' (feedback services use port 2196).
So for example: gateway.push.apple.com actually points to 'gateway.push-apple.com.akadns.net', and when we look up the A records for that we get: A record found: 17.149.38.142 A record found: 17.149.38.159 A record found: 17.149.38.150 A record found: 17.149.38.140 A record found: 17.149.38.128 A record found: 17.149.38.132 A record found: 17.149.38.166 A record found: 17.149.38.129
Again, I suggest opening ports based on the domain names, not IP addresses, since the IP addresses are subject to change in the future.
Comment #4
Posted on May 21, 2010 by Helpful RhinoHi jondick, Thanks for the reply. We had given access to (apple's) domains and not IP. And this error stopped.
Comment #5
Posted on Jan 4, 2011 by Swift PandaOur firewalls don't allow access to a "DNS" entry...plus it resolves to many different 17.x.x.x addresses. Our IT security group isn't going to like this!
Status: Invalid
Labels:
Type-Other
Priority-Medium