Try Using "Putinenv.exe", it retrieves most LanMan variables. I am not sure if it returns IP address though. Why do you need this, won't DHCP assign this randomly. Also, the computer name is defined locally in the protocol.ini file, so you don't need to look it up. Putinenv does return the NIC address though. I believe this might be what you want since it does uniquely define a machine.

If you install the boot disk version of TCP/IP you can use the ping utility as NTDOC says to pull the IP address but as I said I can't see how this helps you locate the machine.

[ 16 April 2002, 01:57: Message edited by: JackLothian ]
_________________________
Jack