How to get client hostname and IP using java script | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to get client hostname and IP using java script

9th Jul 2017, 9:44 PM
Vivek Singh
Vivek Singh - avatar
5 Answers
+ 2
thanks for replying. actually I want to put a url on my page, and whoever clicks that I want to capture details from that machine.
10th Jul 2017, 12:35 PM
Vivek Singh
Vivek Singh - avatar
+ 2
I need possibilities from LAN as well as WAN
10th Jul 2017, 12:36 PM
Vivek Singh
Vivek Singh - avatar
+ 2
I am using html/JavaScript
10th Jul 2017, 12:52 PM
Vivek Singh
Vivek Singh - avatar
+ 1
you can't from the browser for security reasons, should use another technology
9th Jul 2017, 10:12 PM
luis sanchez
luis sanchez - avatar
+ 1
It shows me Venezuela (good), but it also shows Cojedes (it's not my city). However that's awesome!!!
10th Jul 2017, 3:13 AM
Andrés04_ve
Andrés04_ve - avatar