how to get ip address?
open notepad / visual studio / any html editor
copy this code and paste on your editor
and save with (filename.HTML).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
function getIP(json){
document.write("your ip adress is :" + json.ip);// remember internet should be connected///
}
</script>
<script type="application/javascript" src="https://api.ipify.org?format=jsonp&callback=getIP"></script><!-----this code is given in description-------------->
</body>
</html>
0 Comments