-2

Is there any way you can find the IP of the Local System?

Usama
  • 27
  • 6

1 Answers1

3

Here is a way you can get an IP address using jQuery:

$.getJSON('https://json.geoiplookup.io/api?callback=?', function(res) {
  ip_c = res.ip;
  console.log(ip_c);
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
Daweed
  • 1,409
  • 1
  • 6
  • 23
Saad Masood
  • 379
  • 2
  • 14