Whoops, EndSelect
I think @IPADDRESS does not exist. Make it @IPADDRESS0 or @IPADDRESS1 or @IPADDRESS2
But again, what if you have 2 or 3 or more NICs in your computer (fixed, wireless, other), what will @IPADDRESSx return, and @IPADDRESS just goes from 0 to 2
I would prefer to loop all NICs with EnumIPInfo.
I also think my lookup is wrong as @IPADDRESS0 returns something like "192.168. 1. 5"
Code:

instr(@IPADDRESS0, "192.168. 24.")



Edited by Witto (2006-08-10 12:16 AM)