{"id":24756343,"url":"https://github.com/dalance/gip","last_synced_at":"2025-04-06T11:08:08.609Z","repository":{"id":4164367,"uuid":"52191460","full_name":"dalance/gip","owner":"dalance","description":"a command-line tool to get global IP address","archived":false,"fork":false,"pushed_at":"2025-03-18T20:30:18.000Z","size":1650,"stargazers_count":36,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:09:56.978Z","etag":null,"topics":["command-line-tool","ipv4","ipv6","rust","rust-library"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"dalance"}},"created_at":"2016-02-21T04:58:04.000Z","updated_at":"2025-03-18T20:30:15.000Z","dependencies_parsed_at":"2024-01-08T21:50:24.453Z","dependency_job_id":"bd27aced-7cd5-46ba-81e2-bd532d3f81a4","html_url":"https://github.com/dalance/gip","commit_stats":{"total_commits":326,"total_committers":4,"mean_commits":81.5,"dds":0.5674846625766872,"last_synced_commit":"78a916a3477f4ac25b2567dcc2dbc5c93f4bac83"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fgip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fgip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fgip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fgip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalance","download_url":"https://codeload.github.com/dalance/gip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471519,"owners_count":20944158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","ipv4","ipv6","rust","rust-library"],"created_at":"2025-01-28T13:51:05.759Z","updated_at":"2025-04-06T11:08:08.592Z","avatar_url":"https://github.com/dalance.png","language":"Rust","funding_links":["https://github.com/sponsors/dalance"],"categories":[],"sub_categories":[],"readme":"# gip\r\n\r\n[![Actions Status](https://github.com/dalance/gip/workflows/Regression/badge.svg)](https://github.com/dalance/gip/actions)\r\n[![Crates.io](https://img.shields.io/crates/v/gip.svg)](https://crates.io/crates/gip)\r\n[![Docs.rs](https://docs.rs/gip/badge.svg)](https://docs.rs/gip)\r\n\r\n**gip** is a command-line tool and Rust library to check global IP address.\r\n\r\n## Install\r\nDownload from [release page](https://github.com/dalance/gip/releases/latest), and extract to the directory in PATH.\r\n\r\nAlternatively you can install by [cargo](https://crates.io).\r\n\r\n```\r\ncargo install gip\r\n```\r\n\r\n## Usage\r\n\r\n```\r\ngip 0.3.2-pre\r\ndalance \u003cdalance@gmail.com\u003e\r\nA library and command-line frontend to check global IP address\r\n\r\nUSAGE:\r\n    gip [FLAGS] [OPTIONS]\r\n\r\nFLAGS:\r\n    -4, --v4         IPv4 address ( default )\r\n    -6, --v6         IPv6 address\r\n    -p, --plane      Show by plane text ( default )\r\n    -s, --string     Show by plane text without line break\r\n    -j, --json       Show by JSON\r\n    -l, --list       Show provider list\r\n    -v, --verbose    Show verbose message\r\n    -h, --help       Prints help information\r\n    -V, --version    Prints version information\r\n\r\nOPTIONS:\r\n        --timeout \u003ctimeout\u003e      Timeout per each provider by milliseconds [default: 1000]\r\n        --json-key \u003cjson_key\u003e    Key string of JSON format [default: ip]\r\n        --proxy \u003cproxy\u003e          Proxy for HTTP access ( \"host:port\" )\r\n```\r\n\r\n## Providers\r\nCurrently built-in service providers are the followings.\r\n\r\n- [ipv6-test.com](http://ipv6-test.com) ( v4 /v6 )\r\n- [ident.me/tnedi.me](http://api.ident.me) ( v4 / v6 )\r\n- [test-ipv6.com](http://test-ipv6.com) ( v4 / v6 )\r\n- [opendns.com](https://www.opendns.com) ( v4 / v6 )\r\n- [akamai.com](https://developer.akamai.com) ( v4 / v6 )\r\n\r\nIf you want to change providers, providers can be set by `$HOME/.gip.toml` like the following.\r\n\r\n```\r\n[[providers]]\r\n    name     = \"ident.me\"\r\n    ptype    = \"IPv4\"\r\n    protocol = \"HttpPlane\"\r\n    url      = \"http://v4.ident.me/\"\r\n    key      = []\r\n\r\n[[providers]]\r\n    name     = \"test-ipv6\"\r\n    ptype    = \"IPv4\"\r\n    protocol = \"HttpJson\"\r\n    url      = \"http://ipv4.test-ipv6.com/ip/\"\r\n    key      = [\"ip\"]\r\n    padding  = \"callback\"\r\n\r\n[[providers]]\r\n    name     = \"opendns.com\"\r\n    ptype    = \"IPv4\"\r\n    protocol = \"Dns\"\r\n    url      = \"myip.opendns.com@resolver1.opendns.com\"\r\n    key      = []\r\n```\r\n\r\n## Library\r\n\r\n**gip** is provided as Rust library.\r\n\r\n```Cargo.toml\r\ngip = \"0.7.1\"\r\n```\r\n\r\n[Documentation](https://docs.rs/gip)\r\n\r\n## License\r\n\r\nLicensed under either of\r\n\r\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\r\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\r\n\r\nat your option.\r\n\r\n### Contribution\r\n\r\nUnless you explicitly state otherwise, any contribution intentionally\r\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\r\nlicense, shall be dual licensed as above, without any additional terms or\r\nconditions.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalance%2Fgip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalance%2Fgip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalance%2Fgip/lists"}