{"id":20551616,"url":"https://github.com/clarketm/myip","last_synced_at":"2025-04-14T11:31:10.430Z","repository":{"id":57532272,"uuid":"98365766","full_name":"clarketm/myip","owner":"clarketm","description":"Command line utility for displaying public and private IP addresses","archived":false,"fork":false,"pushed_at":"2019-07-24T03:19:46.000Z","size":127943,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T00:44:04.798Z","etag":null,"topics":["binary","executable","golang","ip","ip-address"],"latest_commit_sha":null,"homepage":"","language":"Go","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/clarketm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-26T01:35:35.000Z","updated_at":"2019-12-02T11:49:10.000Z","dependencies_parsed_at":"2022-09-14T00:12:09.707Z","dependency_job_id":null,"html_url":"https://github.com/clarketm/myip","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fmyip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fmyip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fmyip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fmyip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarketm","download_url":"https://codeload.github.com/clarketm/myip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248871734,"owners_count":21175282,"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":["binary","executable","golang","ip","ip-address"],"created_at":"2024-11-16T02:32:28.537Z","updated_at":"2025-04-14T11:31:10.403Z","avatar_url":"https://github.com/clarketm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [myip](https://godoc.org/github.com/clarketm/myip)\n\nCommand line utility for displaying public and private IP addresses.\n\n[![release-badge](https://img.shields.io/github/release/clarketm/myip.svg)](https://github.com/clarketm/myip/releases)\n[![circleci-badge](https://circleci.com/gh/clarketm/myip.svg?style=shield)](https://circleci.com/gh/clarketm/myip)\n[![codacy-badge](https://api.codacy.com/project/badge/Grade/ce4b31a2e23b4959944d44f5add5234b)](https://www.codacy.com/app/clarketm/myip?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=clarketm/myip\u0026amp;utm_campaign=Badge_Grade)\n\n```shell\nNAME:\n    myip – list IP addresses.\n\nSYNOPSIS:\n    myip [ opts... ]\n\nOPTIONS:\n    -h, --help          # Show usage.\n    -a, --all           # Same as -e|--ethernet, -l|--loopback, -p|--public (default).\n    -l, --loopback      # Print (IPv4/IPv6) (l)oopback IP address.\n    -e, --ethernet      # Print (IPv4/IPv6) (e)thernet IP address.\n    -p, --public        # Print (IPv4/IPv6) public IP address.\n    -v, --version       # Show version number.\n\nEXAMPLES:\n    myip -a             # list all IP addresses.\n```\n\n## Installation\n\n#### Golang\n```shell\n$ go get -u github.com/clarketm/myip\n```\n\n#### Source (Mac/Linux)\n```shell\n# List of builds: https://github.com/clarketm/myip/releases/\n\n$ BUILD=darwin_amd64.tar.gz     # Mac (64 bit)\n# BUILD=linux_amd64.tar.gz      # Linux (64 bit)\n\n$ BIN_DIR=/usr/local/bin        # `bin` install directory\n$ mkdir -p $BIN_DIR\n\n$ curl -L https://github.com/clarketm/myip/releases/download/v1.4.4/$BUILD | tar xz -C $BIN_DIR        # install\n```\n\n#### Source (Windows)\n* https://github.com/clarketm/myip/releases/download/v1.4.4/windows_amd64.zip\n\n\n## Usage\n\n#### Basic usage \n```shell\n$ myip\n\n\nEthernet (IPv4): 10.0.0.1\nEthernet (IPv6): fe80::22:a379:7bff:9092, fe80::aede:48ff:fe00:1122\n\nLoopback (IPv4): 127.0.0.1\nLoopback (IPv6): ::1, fe80::1\n\nPublic (IPv4): 71.217.233.188\n```\n\n#### Get public IP address\n```shell\n# Same as `myip -p`\n$ myip --public\n\nPublic (IPv4): 71.217.233.188\n```\n---\n\nYou can see the full reference documentation for the **myip** package at [godoc.org](https://godoc.org/github.com/clarketm/myip), or through go's standard documentation system:\n```bash\n$ godoc -http=:6060\n\n# Open browser to: \"http://localhost:6060/pkg/github.com/clarketm/myip\"  to view godoc.\n```\n\n## Related\n* [public-ip](https://github.com/clarketm/public-ip) – A simple public IP address API\n\n## License\nApache-2.0 \u0026copy; [**Travis Clarke**](https://blog.travismclarke.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fmyip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarketm%2Fmyip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fmyip/lists"}