readme.md

ipify Travis-CI Build Status Coverage Status

Get your public IP

Using the ipify API by Rdegges

Installation and Documentation

ipify is available through both CRAN and GitHub:

To install the CRAN version:

install.packages("ipify")

To install the latest development version from GitHub:

install.packages("devtools")
devtools::install_github("gregce/ipify")

Usage

You can see the package in action at http://gregce.github.io/ipify/

library(ipify)
get_ip()
get_ip(format="json")
get_ip(format="jsonp")
## [1] "73.162.222.85"
## $ip
## [1] "73.162.222.85"
## 
## [1] "callback({\"ip\":\"73.162.222.85\"});"

License

MIT @ Greg Ceccarelli



gregce/ipify documentation built on April 13, 2020, 6:52 p.m.