android&上的ipv6和TidHTTP问题的iOS [英] ipv6 and TidHTTP issue on Android & iOS

查看:89
本文介绍了android&上的ipv6和TidHTTP问题的iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试连接到ipv6本地服务器地址.这是代码段

we are trying to connect to an ipv6 local server address. This is the code snippet

_st := IdHTTP1.Get('http://[fe80::a6ee:57ff:fe5c:7de6]:8000/reparti');

问题如下:

  • 如果我们为Windows编译->它可以工作,并且我们得到json响应
  • 如果我们为Android或iOS进行编译->我们得到

  • If we compile for Windows -> It works and we get the json response
  • if we compile for either Android or iOS -> we get

套接字错误#22无效参数"

"socket error #22 invalid argument"

无响应,服务器未收到任何请求

and no response and the server do not receive any request

我们缺少什么?

感谢您的支持

推荐答案

您尝试连接的IP地址不完整.它缺少必需的作用域ID.

The IP address you are attempting to connect to is incomplete. It is missing the mandatory scope ID.

这篇关于android&上的ipv6和TidHTTP问题的iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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