I’m using an API that I call from PHP using Curl. They have an IP whitelisting option and they don’t support IPv6 addresses. I have my IPv4 address added to the whitelist there but my requests are getting blocked. They tell me that they’re receiving requests from my IPv6 address.
This has probably happened recently (with an update perhaps) because I’ve been using this API for a long time and recently it stopped working.
Is there something I can do to send these requests from IPv4 address? It would be preferable if this setting is server specific and doesn’t affect other virtualmin servers/domains.
My assumption would be that if the name of the server resolves to an IPv4 address(es), and you have an IPv4 route to that server, that the request would go out via IPv4.
Check your routing table and do a traceroute to the server to see the hops.