如何从我的托管服务器检查APNS端口2195的连接? [英] How to check connectivity of apns port 2195 from my hosting server?
问题描述
我想购买主机plan.what前检查是否推送通知可以做到使用托管服务器是检查this.Also我已经godaddy.com的托管计划,我可以使用推送通知从GoDaddy的托管服务器的最短途径?
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?
推荐答案
您可以明确使用telnet和指定哪些端口连接到确认。在命令行中运行:
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.
您将需要一个SSH登录到您的托管服务,以这种方式测试它,不幸的是你不可能能够对其进行测试,而无需购买一个账户 - 所以你可能不得不依靠要求他们的客户服务
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.
请注意,基本托管的软件包通常只是提供了一个FTP登录,让您服务的文件,你通常会不得不支付额外得到一个主机包提供SSH访问(这你需要,如果你要运行code连接到苹果推送通知服务器)。
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).
这篇关于如何从我的托管服务器检查APNS端口2195的连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!