IPv4 and IPv6 PHP script

This is the php script for your webpage that can detect both Ipv4 and Ipv6 addresses in your internet connection.

An example can be seen below showing the script working. The result after the implementation of the script shows only IPv4 since i am only using that ip address on my internet.

You can also change some text in the script for your own preference.

You can download the PHP script here