Archive: Detecting Network IP Address


Detecting Network IP Address
How can i detect the network IP address of a PC? I have tried downloading someones iptest.zip which they claim would work but it doesn't.

Anybody have any other ideas? Don't need any other addresses just the IP address of the network card.

Thanx


What is the problem with iptest?


IP Test returns

Network IP Address - 192.168.0.100
Loop Back IP Address - 127.0.0.1
Internet IP Address - 152.168.0.101
Automatic Private IP Address - 169.254.0.1

When i run WINIPCFG

Network IP Address - 192.168.1.51


Have you got only one network adapter?


Yes just the 1.

Its a D-Link DFE530TX


I also get the same IP address on my colleagues PC who has a similar setup


Are you using the original example script?


If I'm not mistaken, the solution is quite simple...

The default NSI script file parses a string of test values:
"192.168.0.100;127.0.0.1;152.168.0.101;169.254.0.1;"

Instead, comment that line and uncomment the section above it that actually uses the DLL:

;SetOutPath $TEMP
;File ip.dll
;CallInstDll $TEMP\ip.dll get_ip
;Pop $0

Hope this helps!


Sorry guys i didn't even check.

Just expected it to work straight off. :) Opps!