So I have a NGINX web server with php and I need a way to force all clients to connect over IPv4 if they have Dual Stack IPv4+IPv6, and still be able to connect if they support only IPv6 OR only IPv4.
How would I go about this?
If not possible, is there anyway I could use java script to get a client's IPv4 (when connecting through IPv6) and post it to a url?