ios - Delphi 10.1 Berlin idHTTP/IPv6/iOS/Socket 错误 #51 网络无法访问

标签 ios delphi https ipv6

我们无法通过申请测试。应 Apple 的要求,我们将静态 IPv6 地址添加到我们的服务器中。通过我们的申请,一切顺利,但再次被拒绝。问题还是一样。

他们收到错误:Socket Error #51 Network is unreachable.

不清楚为什么他们在测试期间无法连接到我们的服务器?

我们做错了什么?我们需要支持 IPv4 和 IPv6 吗?

我们使用以下组件

客户:

  1. idHTTP
  2. IdSSLIOHandlerSocketOpenSSL

服务器:

  1. IdHTTPServer
  2. IdServerIOHandlerSSLOpenSSL

服务器有一个静态 IPv6 地址,并且可用。

我们按以下方式处理连接:

try 
 IdSSLIOHandlerSocketOpenSSL1.IPVersion := Id_IPv6; 
 answerBuff := idHTTP1.Post('https://[xxxx:a0e0:bad:bad::53]:8001/', tmpPostRequestData); 
except 
 IdSSLIOHandlerSocketOpenSSL1.IPVersion := Id_IPv4;
 answerBuff := idHTTP1.Post('https://xx.85.157.25:8001', tmpPostRequestData); 
end;

我们不使用域名,仅使用直接地址。 服务器 IPv6 地址可用。请帮助某人。

原谅我们的英语。

最佳答案

我们有解决方案。

我们的 Wi-Fi 连接问题已解决。

  1. The roots of the problem were growing due to the use of SSL. Please note that the receiving side (server) must listen to your secure traffic on port 443. Accordingly, the client must also send traffic to this port, or do not specify the port in the URL.

  2. The second part of the problem was that after a lot of failure using the domain name, I despaired and refused to use the domain name to send requests, and tried to use direct IPv4, IPv6 address. It was a wrong decision. The problem is that SSL certificates are issued to the name of my domain, but not to the addresses of the tied servers.The firewall was cursing and did not let us go any further. Just use your domain name, and use correct ports.

不要忘记在您的 donaim 名称中包含 AAAA ns 记录。向我们的工程师致敬。

最诚挚的问候谢尔盖。

关于ios - Delphi 10.1 Berlin idHTTP/IPv6/iOS/Socket 错误 #51 网络无法访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46659402/

相关文章:

ios - 来自 Apple 的关于缺少推送通知权利的电子邮件

ios - VFR-Reader 在 iOS8 中崩溃

使用泛型的 Delphi 属性 getter 函数

Golang native http 客户端卡在特定 URI 上

当代理服务器用于 LAN 时的 PowerShell Remoting

ios - 我怎样才能得到 UILabel 的高度?

delphi - 如何从 Bits 数组创建 Bitmap32?

delphi - 为什么 "array of string"的两个别名会受到不同的处理?

java - 如何在 Android 中使用 HTTPS 发布

ios - 初始化前使用的变量