0

I have this small snippet of code which allows me to retrieve the public IP address

 $.get("http://ipinfo.io", function (response) {
            alert(response.ip);
        }, "jsonp");

I would like to be able to get the actual IP v 4 address of the machine the client is using much similar to that displayed in command prompt after entering the ipconfig command

3
  • 1
    Why would you need to know that? - Don't forget the address you get may not be routeable... Commented Apr 15, 2016 at 10:09
  • Iam not sure if you are trying to be rude or if your question is genuine ? we have device sensors in different networks and locations and we would like to log as much info to the database Commented Apr 15, 2016 at 13:19
  • For a LAN environment, could you not determine the client IP from the server side? Can you rely on your devices/sensors on supporting the relevent HTML5 modules that allow you to do this? Commented Apr 15, 2016 at 13:29

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.