Internet Explorer Grab Internal Ip Address
I'm looking for a solution to grab people's internal ip addresses in IE (not using java or java applets). The equivalent in Java looks like that: this.sock.bind(new java.net.InetSo
Solution 1:
You can not get internal IP with JavaScript.
This looks like something you'll need an ActiveX control for, if it is possible.
Solution 2:
I think that depending on the security settings in IE you might be able to use WMI. If so you could just use the Win32_NetworkAdapterConfiguration and it's IPAddress
property.
The following sample in vbscript:
strComputer = "."Set objWMIService = GetObject( _
"winmgmts:\\" & strComputer & "\root\cimv2")
Set IPConfigSet = objWMIService.ExecQuery _
("Select IPAddress from Win32_NetworkAdapterConfiguration ")
ForEach IPConfig in IPConfigSet
IfNot IsNull(IPConfig.IPAddress) ThenFor i=LBound(IPConfig.IPAddress) _
to UBound(IPConfig.IPAddress)
WScript.Echo IPConfig.IPAddress(i)
NextEndIfNext
Is taken from this MSDN page.
Post a Comment for "Internet Explorer Grab Internal Ip Address"