1

What I want to do is saving the IP address in a json file.

    <script>
    function getIP(json) {
      alert(json.ip);
      //I want the "json.ip" data to appear in a JSON file I called ip.JSON
    }
    </script>
    <script src="https://api.ipify.org?format=jsonp&callback=getIP"></script>

0 Answers0