Get your public IPv4 and IPv6 addresses.
Live version: https://ip-test.app.popoway.cloud/
Basic features should work, since it is rather stable.
The server part uses a simple index.php
file to print the current IP used by the user.
The client part is intended to retrieve the requests from both servers to get the IPv4 and IPv6 addresses of the user.
Three subdomains should be set as follows:
ipv4-test.app.popoway.cloud. 86400 IN A (ipv4 address)
ipv6-test.app.popoway.cloud. 86400 IN AAAA (ipv6 address)
ip-test.app.popoway.cloud. 86400 IN CNAME (point to your server)
The user loads the ip-test
page. The page will make two requests using
JavaScript to the two other subdomains: ipv4-test
and ipv6-test
. If a
request fails, it would say that the IP version isn't supported by the client.
In the other way, the request will directly give the good version of the user
IP.
Make sure CORS is correctly configured on your server, otherwise XHR request will break.
Sample configuration: nginx