查询本机ip和浏览器useragent的网址

来源:互联网 发布:花都 知乎 编辑:程序博客网 时间:2024/06/10 03:44

ip : http://www.whatismyip.com


useragent: http://whatsmyuseragent.com


也可以在程序中请求:


NSString *strReturn = [NSStringstringWithContentsOfURL:[NSURLURLWithString:@"http://automation.whatismyip.com/n09230945.asp"]encoding:NSUTF8StringEncodingerror:nil];


strReturn 就是网站返回的你设备当前的ip;


原创粉丝点击