Delph最简单i获取外网IP

uses idhttp;

var

  idhttp:Tidhttp;
begin
    idhttp:=TIdHTTP.Create(nil);
    ShowMessage(idhttp.Get('http://www.3322.org/dyndns/getip'));

   idhttp.Free;

end;

你可能感兴趣的:(Delph最简单i获取外网IP)