Skip to content

libcurl can't connect to ipv4 numerical IP address in NAT64 environment #863

@churuxu

Description

@churuxu

my test environment:
a mac mini share NAT64 wifi,
an iphone connect this wifi,
in this iphone use libcurl to connect ipv4 server url , such like "http://192.168.1.200/"
it can‘t connect to server.

the reason may be:
libcurl try parse ip addr directly. result of resolver only have one sockaddr:
AF_INET: 192.168.1.200

in my test code, the result 'addrinfo' of os 'getaddrino' api have two sockaddr:
AF_INET6: 0064:ff9b:0000:0000:0000:0000:192.168.1.200
AF_INET: 192.168.1.200

connect AF_INET6 addr is ok , and connect AF_INET addr is error in this environment.

curl/libcurl version 7.41

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions