Skip to content
⌘ NSIS Forum Archive

Detecting Network IP Address

9 posts

Sailo#

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
Sailo#
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
Daab#
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!