IP API Getting your public ipv4 adress Simply do a GET request to the php file (This file need to be hosted on a web server) https://example.com/ip/txt/index.php And your public ipv4 adress will be returned as a string To be done : Add ipv6 support, add xml and json support