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;

posted on 2014-07-21 20:53  martian6125  阅读(143)  评论(0编辑  收藏  举报