查询本机ip和浏览器useragent的网址
·
ip : http://www.whatismyip.com
useragent: http://whatsmyuseragent.com
也可以在程序中请求:
NSString *strReturn = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://automation.whatismyip.com/n09230945.asp"] encoding:NSUTF8StringEncoding error:nil];
strReturn 就是网站返回的你设备当前的ip;
更多推荐

所有评论(0)