Generation

código para obtener la ip del navegador y mostrarlo en la misma web en la zona superior derecha

<!DOCTYPE html> <html> <head> <script> function getIP(json) { document.write("My public IP address is: ", json.ip); } </script> <script src="https://api.ipify.org?format=jsonp&callback=getIP"></script> </head> <body> </body> </html>

Questions about programming?Chat with your personal AI assistant