gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 00:10:21 24 4
gpt4 key购买 nike

我们无法通过申请测试。应 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com