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,