Sailo
29th August 2002 17:13 UTC
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
Joost Verburg
29th August 2002 17:15 UTC
What is the problem with iptest?
Sailo
29th August 2002 17:19 UTC
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
Joost Verburg
29th August 2002 17:26 UTC
Have you got only one network adapter?
Sailo
29th August 2002 17:36 UTC
Yes just the 1.
Its a D-Link DFE530TX
Sailo
29th August 2002 17:37 UTC
I also get the same IP address on my colleagues PC who has a similar setup
Joost Verburg
29th August 2002 17:41 UTC
Are you using the original example script?
Daab
29th August 2002 17:42 UTC
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!
Sailo
29th August 2002 20:05 UTC
Sorry guys i didn't even check.
Just expected it to work straight off. :) Opps!