Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

iPhone 4, iOS 4.3.1

Push notifications are working, when WiFi is turned off and device uses 3G, but when WiFi is on I can't receive any notifications.

I was told that something can block port 5223 that push notifications, so I've turned of firewall on my Linksys router. Still don't work.

For some games I used to forward port for IP address, the pattern in router configuration is as follows:

app_name, port_range_start, port_range_stop, TCP/UDP, IP

But when I list my DHCP clients in router admin page it seems that iPhone has no IP.

So what to do nex

share|improve this question

migrated from stackoverflow.com Apr 18 '11 at 6:34

This question came from our site for professional and enthusiast programmers.

2 Answers 2

You don't need to open any ports on your firewalls for push notifications to work on your iPhone.

My iOS devices spent 90% of the time behind firewalls that don't allow any inbound connections to them. Notifications work fine (even with mobile data turned off).

The Apple docs at http://support.apple.com/kb/HT3576 do talk about port 5223. But they will be referring to out going connections on that port (even though they don't explicitly state that). Your firewall is unlikely to be blocking those, though I guess it is worth checking. I guess it is also possible that your ISP is blocking the out going port, but again that seems unlikely.

Despite the "push" in its name, Push Notifications are actually more accurately "pull" notifications (like most things with "push" in their name). The iOS device connects to Apple on port 5223 to listen in for the notifications.

share|improve this answer

You probably need to refresh the DHCP list. A lot of routers only update this list occasionally; my router, for instance, still doesn't list the netbook I authenticated to the wireless over a month ago. Try resetting the router, or if you don't want to do that get your iphone's IP from the network setup on the phone itself and forward the port to your iphone by IP instead of device name.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.