我想在购买托管服务器之前检查是否可以使用托管服务器完成推送通知plan.what是检查this.Also的最短方式我有godaddy.com的托管计划我可以使用来自godaddy托管服务器的推送通知吗?
发布于 2009-12-13 23:50:21
您可以通过使用telnet并指定要连接的端口来明确确认。从命令行运行:
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 '^]'.如果有一个错误连接,那么它就会挂起,不会返回-上面显示了一个我可以连接的工作示例。
您将需要一个SSH登录到您的主机服务来测试它的方式,不幸的是,您不太可能能够测试没有购买帐户-因此您可能不得不依赖于询问他们的客户服务。
请注意,基本的主机软件包通常只提供一个FTP登录,让你提供文件,你通常需要支付额外的费用来获得一个提供SSH访问的主机软件包(如果你要运行代码连接到Apple Push Notification服务器,你将需要它)。
发布于 2018-06-06 21:53:23
如果您的系统没有telnet,您可以使用curl来完成这项工作。
curl -v telnet://gateway.sandbox.push.apple.com:2195这里的-v用于详细输出
发布于 2018-12-22 16:04:09
Use Curl if telnet command is not available.
curl -v telnet://gateway.sandbox.push.apple.com:2195
* Rebuilt URL to: telnet://gateway.sandbox.push.apple.com:2195/
* Trying 17.188.137.190...
* TCP_NODELAY set
* Connected to gateway.sandbox.push.apple.com (17.188.137.190) port 2195 (#0)
Press Escape to close the connection
* Closing connection 0https://stackoverflow.com/questions/1811919
复制相似问题