Coder Social home page Coder Social logo

myip's Introduction

Travis-CI Build Status Coverage Status CRAN_Status_Badge

myip

Tools to Determine Your Public ‘IP’ Address(es)

Description

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.

What’s Inside The Tin?

The following functions are implemented:

  • myip/ip_external: Wrapper function for getting your IP address
  • 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
  • ipecho: Use ipecho.net/plain to retrieve public IP address
  • ipinfo: Use ipinfo.io/ip to retrieve public IP address
  • opendns: Use checkip.dyndns.org to retrieve public IP address

Installation

devtools::install_git("https://git.sr.ht/~hrbrmstr/myip")
# OR
devtools::install_git("https://gitlab.com/hrbrmstr/myip")
# OR
devtools::install_git("https://github.com/hrbrmstr/myip")

Usage

library(myip)

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

akamai()

httpbin()

myip("all")
## [[1]]
## (akamai) Public IPv4 Address: 174.62.167.97
## 
## [[2]]
## (amazon) Public IPv4 Address: 174.62.167.97
## 
## [[3]]
## (httpbin) Public IPv4 Address: 174.62.167.97
## 
## [[4]]
## (icanhazip) Public IPv4 Address: 174.62.167.97
## 
## [[5]]
## (ipecho) Public IPv4 Address: 174.62.167.97
## 
## [[6]]
## (ipinfo) Public IPv4 Address: 174.62.167.97
## 
## [[7]]
## (opendns) Public IPv4 Address: 174.62.167.97

myip Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 14 0.93 106 0.86 66 0.75 98 0.72
Rmd 1 0.07 17 0.14 22 0.25 38 0.28

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ktargows

myip's Issues

getip package

So I started this: https://github.com/wrathematics/getip

In that package's parlance, you've created a much more extensive ip_external(). I've almost got an in-process, multi-platform ip_internal() implemented. Would prefer not to have two separate packages for this.

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.