Home > Back-end >  Excuse me: how to monitor network card IP address change?
Excuse me: how to monitor network card IP address change?

Time:09-26

If changed the IP address of the card, using Delphi program how to monitor? How do you know the Ip address has changed?

CodePudding user response:

The IP address information stored in the system registry, can monitor the registry within the IP address is changed,

CodePudding user response:

Monitor the machine IP:
The function GetIP: string;//get the computer IP, USES IdIpWatch;
Var objIP: TIdIPWatch;
The begin
ObjIP:=TIdIPWatch. Create (nil);
Try
ObjIP. HistoryEnabled:=false;
GetIP:=objIP. LocalIP;
The finally
ObjIP. Free;
The end;
The end;

Monitoring network the IP to the machine, is more complex,
  • Related