Re: How to get an IPv4 host to connect to an IPv6 listening socket




As far as I know, you can't get a IPv4-only host to connect to
an IPv6 socket unless you've got something like a default route
that goes through a translator.

Can this be done? I seem to recall something about embedding IPv4
addresses in the final two "sets" of an IPv6 address. Is this what
I'm looking for? I guess, back to the original question, is it

There is a mapping from the IPv4 addresses xxx.xxx.xxx.xxx to
0000:0000:0000:0000:0000:ffff:XXXX:XXXX . This means, with a
suitable gateway, an IPv6 host could reach out and connect to an
IPv4 host.

possible for an IPv4 host to make a connection to an IPv6 listening
socket?

In general, NO, there's not nearly enough bits in the address to specify
an IPv6 host.

I've done both IPv4 and IPv6 work, but never had to mix the two. From
what I know of IPv6 and IPv4, my first guess is that, no, it's not
possible. IPv6 is entirely different, but then there's that RFC I
recall seeing many years about placing IPv4 hosts into IPv6
addresses. I don't recall the RFC number or I'd start by looking that
up.
.



Relevant Pages

  • Re: host -6 failure
    ... IPv6, which I've been meaning to learn for some time. ... However, when I run `host -6 x1.mydomain`, host returns the ... which shows::1 listed as the second nameserver ... The DNS server running on localhost is authoritative ...
    (freebsd-questions)
  • Re: host(1) problem with -6 option
    ... I'm having a little trouble understanding a problem that the `host` ... nameserver 127.0.0.1 ... Which is all fine and dandy when told to use IPv6: ... It makes no sense at all to try and access an IPv6 address using IPv4 transport, and trying the converse: an IPv4 address via IPv6, will either fail or try and use IPv4-mapped addresses. ...
    (freebsd-stable)
  • Re: How to get an IPv4 host to connect to an IPv6 listening socket
    ... IPv4 host. ... an IPv6 host. ... They can be translated, though, with suitable translations, and not ... Isolated IPv4 host with only IPv6 connectivity. ...
    (comp.unix.programmer)
  • Re: host -6 failure
    ... Subject: host -6 failure ... using an ipv4 mapped ipv6 address (which ... the second nameserver ... This causes a dns query for an IPv6 ...
    (freebsd-questions)
  • R: IPv6 and ipfw
    ... comma separated ipv6 addresses, the parser work fine because the "add_srcip6" ... When the protocol is "!=ipv6" ... char *host, *ch; ... ret = add_srcip6; ...
    (freebsd-net)