is ipv6 backward compatible with ipv4?

前端 未结 3 1346
庸人自扰
庸人自扰 2021-01-25 01:55

I\'ve got a little udp example program written using ipv4. If I alter the code to ipv6 would I still be able to communicate with anyone using the listener with an ipv4 address?

3条回答
  •  走了就别回头了
    2021-01-25 02:27

    Not without the assistance of an IPv4/IPv6 gateway in the network, and even then communication will be limited by the typical problems introduced by network address translating gateways. The traditional advice for programmers facing decisions like this is to recommend supporting both IPv4 and IPv6 at the same time.

提交回复
热议问题