Can You Get A Users Local LAN IP Address Via JavaScript? -
i know initial reaction question "no" , "it can't done" , "you shouldn't need it, doing wrong". i'm trying users lan ip address, , display on web page. why? because that's page i'm working on about, showing information possible you, visitor: http://www.whatsmyip.org/more-info-about-you/
so i'm not doing ip, other showing user informational purposes. used using small java applet. worked pretty well. these days, browser make hit agree , trust many times, run minor java applet, i'd rather not run 1 @ all.
so while got rid of feature, i'd if possible. i, computer consultant, use time time. it's faster go website see ip range network running on, go system preferences, networking, , whatever interface active.
so i'm wondering, hoping, if there's way in javascript alone? maybe new object can access, similar way javascript can ask browser geographic location on earth is. maybe theres similar client networking information? if not, perhaps theres other way entirely it? ways can think of java applet, or flash object. i'd rather not either of those.
as turns out, recent webrtc extension of html5 allows javascript query local client ip address. proof of concept available here: http://net.ipcalf.com
this feature apparently by design, , not bug. however, given controversial nature, cautious relying on behaviour. nevertheless, think , appropriately addresses intended purpose (revealing user browser leaking).
Comments
Post a Comment