Archive: IPTest and DHCP


IPTest and DHCP
I'm currently using IPTest to get the IP address of the local mahcine but how can i get it to tell me whether an ip address has been DHCP assigned by the server or set manually on the machine?

Is this possible or is there something else that can find this out for me?

Thanx


Hi Sailo,

this is not possible with IPtest. The DLL involved only extracts all available IP's from the computer. Ipconfig reveals the required information (DHCP-enabled or not) so probably there should be a routine to extract this from the computer as well. Search with google for a routine in your preferred language (C/Delphi/etc.)

Good luck,
-Hendri.


I don't know how to write dll's. :(

Can anyone help or is there an easy way of doing it.


Here's a link that tells you how to do it.
If I have time tonight, I will see if I can build it into the current dll and upload it to the NSIS Archive of Sunjammer and to this thread.

Wait a little, greetz,
-Hendri.


Sorry, I do not have time to create the thing. But I accedentially ran into the package attached below. It is Delphi code to retrieve all kind of information about the current connections (including verify if DHCP is enabled for a particular connection). Maybe someone can put this code into a small dll.

Otherwise, ask this question on a Delphi/Borland Forum or newsgroup.

Good luck,
-Hendri.