<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<center>
<h3>Địa chỉ của người dùng:</h3>
<p id="gfg"></p>
</center>
<script src="script.js"></script>
</body>
</html>
p, h1 {
color: green;
}
$.getJSON("https://api.ipify.org?format=json", function(data) {
$("#gfg").html(data.ip);
})