Is there any way you can find the IP of the Local System?
Asked
Active
Viewed 132 times
-2
-
the ip of the **CONNECTED** server or the ip of **you**? – The Bomb Squad Feb 25 '21 at 11:25
-
Please read my question again @TheBombSquad – Usama Feb 25 '21 at 11:27
-
1do you want the public ip of your router or local ip address of your machine? – Hello World Feb 25 '21 at 11:28
-
Local Ip address – Usama Feb 25 '21 at 11:28
-
1Duplicate with https://stackoverflow.com/questions/391979/how-to-get-clients-ip-address-using-javascript – Simplicity's_Strength Feb 25 '21 at 11:36
-
1Does this answer your question? [How to get client's IP address using JavaScript?](https://stackoverflow.com/questions/391979/how-to-get-clients-ip-address-using-javascript) – Ivar Feb 25 '21 at 11:37
1 Answers
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