Skip to content

Chuongv/CHVIpify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHVIpify

[![CI Status](http://img.shields.io/travis/Chuong Vu/CHVIpify.svg?style=flat)](https://travis-ci.org/Chuong Vu/CHVIpify) Version License Platform

Usage

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..
}];

Requirements

  • ARC
  • iOS7

Installation with CocoaPods

CHVIpify is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CHVIpify"

Installation without CocoaPods

Just drag and drop CHVFetchIPManager.h and CHVFetchIPManager.m to your project

Author

Chuong Vu

Credit

Big thanks to Randall Degges for running and maintaining ipify!

License

CHVIpify is available under the MIT license. See the LICENSE file for more info.

About

An Objective-C library for checking your IP address from ipify.org

Resources

License

Stars

Watchers

Forks

Packages

No packages published