myIP: Uses jsonip.com to retrieve computer's public IP address.

Description Usage Arguments Value Author(s) References Examples

Description

This function connects to jsonip.com to retrieve the public IP address of the computer. The user IP address is requested by the Google Images JSON API: "You should include the userip parameter, which supplies the IP address of the end-user who made the request and validates that you are not making automated requests in violation of the Terms of Service."

Usage

1
myIP()

Arguments

This function has no argument.

Value

The function returns a character string corresponding to the public IP of the computer.

Author(s)

Simon Garnier <garnier@njit.edu>

References

For more information about jsonip.com, visit: http://jsonip.com/about.

Examples

1
myIP()

sjmgarnier/GIr documentation built on May 30, 2019, 12:05 a.m.