All Projects → xtonousou → ipify.sh

xtonousou / ipify.sh

Licence: MIT license
Unofficial client library for ipify: a simple IP address API

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to ipify.sh

Ip Num
A TypeScript/JavaScript library for working with ASN, IPv4, and IPv6 numbers. It provides representations of these internet protocol numbers with the ability to perform various IP related operations like parsing, validating etc. on them
Stars: ✭ 113 (+276.67%)
Mutual labels:  ip-address
private-ip
Check if IP address is private.
Stars: ✭ 26 (-13.33%)
Mutual labels:  ip-address
go
Go library for IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 76 (+153.33%)
Mutual labels:  ip-address
Ip2location Go
Use IP2Location geolocation database to lookup the geolocation information with IP2Location Go Package. It can be used to determine country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type that any IP address or hostname originates from.
Stars: ✭ 142 (+373.33%)
Mutual labels:  ip-address
IPpy
🚀 Ping IP addresses and domains in parallel to find the accessible and inaccessible ones.
Stars: ✭ 54 (+80%)
Mutual labels:  ip-address
go-external-ip
a Golang library to get your external ip from multiple services
Stars: ✭ 55 (+83.33%)
Mutual labels:  external-ip
Ip2region
Ip2region is a offline IP location library with accuracy rate of 99.9% and 0.0x millseconds searching performance. DB file is ONLY a few megabytes with all IP address stored. binding for Java,PHP,C,Python,Nodejs,Golang,C#,lua. Binary,B-tree,Memory searching algorithm
Stars: ✭ 9,836 (+32686.67%)
Mutual labels:  ip-address
Vytal
Browser extension to spoof timezone, geolocation, locale and user agent.
Stars: ✭ 1,449 (+4730%)
Mutual labels:  ip-address
cs-wordpress-bouncer
CrowdSec is an open-source cyber security tool. This plugin blocks detected attackers or display them a captcha to check they are not bots.
Stars: ✭ 25 (-16.67%)
Mutual labels:  ip-address
cli
Official Command Line Interface for the IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 1,279 (+4163.33%)
Mutual labels:  ip-address
Python
Official Python Library for IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 164 (+446.67%)
Mutual labels:  ip-address
CloudMyIp
Know your router public IP address, from anywhere. Great for cheap routers or IP cameras.
Stars: ✭ 38 (+26.67%)
Mutual labels:  public-ip
ruby
Official Ruby client library for IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 42 (+40%)
Mutual labels:  ip-address
Fcipaddressgeocoder
iOS Geocoder for geocode device IP Address location using GeoIP service(s) and a block-based syntax. 💻🌍
Stars: ✭ 114 (+280%)
Mutual labels:  ip-address
rails
Official Rails Library for IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 16 (-46.67%)
Mutual labels:  ip-address
Phpipam
phpipam development repository
Stars: ✭ 1,578 (+5160%)
Mutual labels:  ip-address
IPASN-History
IP ASN History to find ASN announcing an IP and the closest prefix announcing it at a specific date
Stars: ✭ 76 (+153.33%)
Mutual labels:  ip-address
draft-ip-address-privacy
Internet-Draft on IP address privacy
Stars: ✭ 15 (-50%)
Mutual labels:  ip-address
alfred-ip-address-workflow
Alfred 5 workflow for getting your local and external IP addresses.
Stars: ✭ 163 (+443.33%)
Mutual labels:  ip-address
node-ip2region
IP/IPv6 to region on Node.js (IP/IPv6 地址到区域运营商)
Stars: ✭ 95 (+216.67%)
Mutual labels:  ip-address

ipify.sh

FOSSA Status

Unofficial client library for ipify: A Simple IP Address API.

Features

  • Testing Internet Connection first
  • Return the Public IP address in the following formats
    • text
      • e.g. 98.207.254.136
    • json
      • e.g. {"ip":"98.207.254.136"}
    • jsonp
      • e.g. callback({"ip":"98.207.254.136"});
    • jsonp
      • e.g. getip({"ip":"98.207.254.136"});
  • Exit Codes
    • 0
      • Successful Operation
    • 1
      • Invalid or Missing Arguments
    • 2
      • Connection Issues

Getting Started

$ curl -O https://raw.githubusercontent.com/xtonousou/ipify.sh/master/ipify.sh
$ source ipify.sh
$ get_ip -h

or

$ source <(curl -s https://raw.githubusercontent.com/xtonousou/ipify.sh/master/ipify.sh) && get_ip -h

Usage

Proper Usage

COMMAND             TYPE  OUTPUT
get_ip -h, --help   text  This help message
get_ip -t, --text   text  98.207.254.136
get_ip -j, --json   json  {"ip":"98.207.254.136"}
get_ip -J, --jsonp  jsonp callback({"ip":"98.207.254.136"});
get_ip -g, --get-ip jsonp getip({"ip":"98.207.254.136"});

Importing Library

You can source the script to anywhere and use its function to get the Public IP. Put the following line at the beginning of your script. Of course replace the path with the right one first.

source /path/to/ipify.sh

or

. /path/to/ipify.sh

More Like This

  • ship - A simple, handy network addressing multitool with plenty of features

License

MIT © Sotirios M. Roussis (xtonousou)

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].