On my server (Debian 3.2.54-2 x86_64 GNU/Linux), I use this command to check the connection with APNS (Apple Push Notification Server):
telnet gateway.sandbox.push.apple.com 2195 Trying 17.172.232.46... Trying 17.172.232.45... Trying 17.172.232.18... telnet: Unable to connect to remote host: Connection timed out
ping gateway.sandbox.push.apple.com PING gateway.sandbox.push-apple.com.akadns.net (17.172.232.46) 56(84) bytes of data.
The telnet failed to help me connect. What is the reason for that?
1) Do I need to ask the admin to configure the firewall to let the telnet go through the port 2195?
2) When we use a telnet to a server with a given port, what port on our side will be open?
telnet gateway.sandbox.push.apple.com 2195means the port 2195 on APNS will be opened, so which port on our computer will be open to establish the connection?