[![CI Status](http://img.shields.io/travis/Chuong Vu/CHVIpify.svg?style=flat)](https://travis-ci.org/Chuong Vu/CHVIpify)
Sometimes you need the IP address of the user's iphone. In this case you can use ipify.org to simplify this!
#import "CHVIPRetriever.h"
CHVIPRetriever *retriever = [CHVIPRetriever new];
[retriever getIPAddress:^(NSString *ip, NSError *error) {
NSLog(@"IP: %@", ip); //your ip..
}];
- ARC
- iOS7
CHVIpify is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CHVIpify"
Just drag and drop CHVFetchIPManager.h
and CHVFetchIPManager.m
to your project
Big thanks to Randall Degges for running and maintaining ipify!
CHVIpify is available under the MIT license. See the LICENSE file for more info.