Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check connectivity of apns port 2195 from my hosting server?

Tags:

I want to check if Push Notification can be done using a hosting server before purchasing hosting plan.what is the shortest way to check this.Also i have godaddy.com's hosting plan can i use push notification from godaddy's hosting server?

like image 233
Rahul Vyas Avatar asked Nov 28 '09 07:11

Rahul Vyas


People also ask

Which TCP ports are required for APNs communication?

Check required ports and hostsTCP port 5223 to communicate with APNs. TCP port 443 or 2197 to send notifications to APNs.

What protocol does APNs use?

0, HTTP/2 is the default protocol for connections to APNs. This means that all mobile device management (MDM) communication, such as remote commands, configuration profiles, applications, and push notifications, is handled by the HTTP/2 protocol.

What is APNs Jamf?

Jamf Pro requires a valid push certificate to communicate with Apple Push Notification service (APNs). This communication is required to do the following: Send macOS configuration profiles and macOS remote commands to computers. Distribute Mac App Store apps to computers. Enroll and manage iOS devices.


2 Answers

You can confirm definitively by using telnet and specifying which port to connect to. From the command line run:

MyServer:~ Home$ telnet gateway.sandbox.push.apple.com 2195
Trying 17.149.34.143...
Connected to gateway.sandbox.push-apple.com.akadns.net.
Escape character is '^]'.

If there is an error connecting then it will just hang and not return - the above shows a working example where I can connect.

You'll need an SSH login to your hosting service to test it this way, and unfortunately you are unlikely to be able to test it without buying an account - so you probably have to rely on asking their customer services.

Be aware that basic hosting packages normally just provide an FTP login to let you serve up files, you'll usually have to pay extra to get a hosting package which provides SSH access (which you'll need if you are going to run code to connect to the Apple Push Notification Servers).

like image 155
Dan J Avatar answered Oct 10 '22 00:10

Dan J


if your system does not have telnet, you can make use of curl to do the job.

curl -v telnet://gateway.sandbox.push.apple.com:2195

here -v is for verbose output

like image 44
Vivin Veerali Avatar answered Oct 10 '22 00:10

Vivin Veerali