Get current IP address and hostname?
Is there a way in Delphi to get the IP address and/or hostname from the
OS? Is this in the registry somewhere, and if so, where is it
documented? I searched through the Delphi help (well, okay, I looked in
the index -- the HELP engine bombed after trying for a long time to index
everything, cruddy engine that it is).
Reason: I need to write a program to run on Win95 (NT would be nice, too)
that would log the IP address and hostname (as well as Netware login name,
but I already have a DOS program to do that :) to a file, so that we can
track IP addresses and hostnames. There appear to be a couple of
mis-configured machines on our network, and some have changed hands
without having their hostnames changed, so I want to track them the way I
do our DOS/Win 3.x machines. (I can't use the same program for Win95/NT,
since the IP address isn't in net.cfg and the hostname isn't in
autoexec.bat ;).
Thanks in advance,
Kendall :)
--
Kendall P. Bullen Web: http://www.his.com/~kendall/
E-mail: kendall@-->^^^^^^^