Giter Club home page Giter Club logo

myip's Introduction

myip: Tools to Determine Your Public 'IP' Address(es)

It is often necessary to know the 'IPv4' and/or 'IPv6' external addresses of a workstation for 'API' calls. Functions are provided to use one or more external services to accomplish this task along with a wrapper function that can return results from multiple services or use a random service.

The following functions are implemented:

  • akamai: Use whatismyip.akamai.com to retrieve public IP address
  • amazon: Use checkip.amazonaws.com to retrieve public IP address
  • httpbin: Use httpbin.org to retrieve public IP address
  • icanhazip: Use icanhazip to retrieve public IP address
  • ifcfgme: Use ifcfg.me to retrieve public IP address
  • ipecho: Use ipecho.net/plain to retrieve public IP address
  • ipinfo: Use ipinfo.io/ip to retrieve public IP address
  • myip: Wrapper function for getting your IP address
  • opendns: Use checkip.dyndns.org to retrieve public IP address
  • shuffit: Use shtuff.it/myip/short retrieve public IP address

Installation

devtools::install_github("hrbrmstr/myip")

Usage

library(myip)

# current verison
packageVersion("myip")
#> [1] '0.1.0.9000'

akamai()
#> Public IPv4 Address: 50.252.233.22

httpbin()
#> Public IPv4 Address: 50.252.233.22

Test Results

library(myip)
library(testthat)

date()
#> [1] "Mon Jul  4 18:10:36 2016"

test_dir("tests/")
#> testthat results ========================================================================================================
#> OK: 0 SKIPPED: 0 FAILED: 0
#> 
#> DONE ===================================================================================================================

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

myip's People

Contributors

hrbrmstr avatar

Watchers

KTA avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.