如何从我的托管服务器检查 apns 端口 2195 的连接性? [英] How to check connectivity of apns port 2195 from my hosting server?

查看:21
本文介绍了如何从我的托管服务器检查 apns 端口 2195 的连接性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在购买托管计划之前检查是否可以使用托管服务器完成推送通知.检查这个的最短方法是什么.另外我有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 访问的托管包(如果您要运行代码以连接到 Apple 推送通知服务器).

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆