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;