I am going to make a console interface and it would connect to my virtual machine. However, I would want to find out who's connected on my local network so is there a way to get the client's local IP using pure JavaScript and no third party libraries? I have tried other methods like WebRTC but they don't seem to work anymore. PHP is also fine, but I would need to transfer the variable to the JavaScript.
Asked
Active
Viewed 104 times
0
-
Possible dupe? https://stackoverflow.com/questions/20194722/can-you-get-a-users-local-lan-ip-address-via-javascript – SuperStormer Feb 25 '21 at 23:40
-
I've seen that and have tried but that's the problem.. in chrome you have disable some extension. I'm looking for a way to get around that. – Feb 25 '21 at 23:45
-
once your on the serving side, the following answer should work: https://stackoverflow.com/questions/41846540/how-to-get-ip-address-of-client-using-our-website-using-nodejs – The Bomb Squad Feb 26 '21 at 00:04