I am creating an application with Flutter and it needs IPv6 compatibility for App Store. My server is using a IPv4 address, and the application is working as intended when the client is in IPv4 network. The server (Python) creates a socket for IPv6 addresses (AF_INET6) and Dart has
static Future<RawDatagramSocket> rDgS =
RawDatagramSocket.bind(InternetAddress.anyIPv6, [port number]);
I am using UDP.
Can I connect a client from a IPv6-only network to my server that uses IPv4 address? The server has both IPv4 and IPv6 addresses available, but currently only one can be used.
Is it possible to check the client's connection type (IPv4/IPv6) using Dart (Flutter) and then connect to the server using the correct IP-address? If yes, how?
If this works, I assume it works for both Android and iOS devices?
Currently, I am unavailable to create a IPv6-only network to test the changes and I am trying to get it working. Since I am working with a tight schedule, I am asking this in advance.