My mobile is connected to a WiFi router and it gives me 192.168.1.100 as my private IP. Now I have a requirement where I have to get this IP for some purpose. When I visit this "http://l2.io/ip.js" it gives me back the public IP i.e. "140.242.241.2".
So bottom line is how can I get the IP address which the router assigns me with the help of javascript. Any working example will be of great help.