{"id":24199339,"url":"https://github.com/nixigaj/wut","last_synced_at":"2026-04-07T16:31:23.828Z","repository":{"id":222056225,"uuid":"753872059","full_name":"nixigaj/wut","owner":"nixigaj","description":"A fast and simple command-line tool to check your public IP-address. It can also double as a network connectivity checker.","archived":false,"fork":false,"pushed_at":"2024-02-07T00:12:36.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T09:26:45.911Z","etag":null,"topics":["cli","command-line","freebsd","go","golang","ip","ip-address","ipv4","ipv6","linux","macos","public-ip","windows","wut"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nixigaj.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-07T00:11:42.000Z","updated_at":"2024-10-18T19:07:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c6105bd-d85c-4682-98a1-fe08a0e7e55d","html_url":"https://github.com/nixigaj/wut","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"aee3073c81810fbf797108488ce1f1fa4c33780f"},"previous_names":["nixigaj/wut"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nixigaj/wut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixigaj","download_url":"https://codeload.github.com/nixigaj/wut/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","command-line","freebsd","go","golang","ip","ip-address","ipv4","ipv6","linux","macos","public-ip","windows","wut"],"created_at":"2025-01-13T20:35:45.536Z","updated_at":"2026-04-07T16:31:23.807Z","avatar_url":"https://github.com/nixigaj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"left\" alt=\"wut icon\" src=\"icon.svg\" height=\"128\" style=\"margin-right: 1rem\" /\u003e\n\n# `wut`\nA fast and simple command-line tool to check your public IP-address.\nIt can also double as a network connectivity checker.\n\n## Features / Usage\n- **Fast** — Quires multiple different APIs at once and returns the first response while discarding the others.\n- **Simple** — Does one thing and does it well, with a minimal number of options, in a single source file, using only the Go standard library.\n- **IPv4 and IPv6** — Prints both by default but can print only one with the `--ipv4`/`-4` and `--ipv6`/`-6` flags. The default behaviour can be changed to a specific version by setting the `WUT_DEFAULT_IP_VERSION` environment variable to `ipv4`/`4` or `ipv6`/`6`. To print both versions with the environment variable set use the `--both` or `-b` flag.\n- **Short output** — Does a pretty print by default but can print only an address with no white-space using the `--short` or `-s` flag. This flag additionally requires the IP version be explicitly specified with the `--ipv4`/`-4` or `--ipv6`/`-6` flags or the `WUT_DEFAULT_IP_VERSION` environment variable.\n- **Specify interface or local IP** — Use a specific interface name or local IP by passing the `--interface` or `-i` flag. If an interface name is specified the first IPv4 and/or IPv6 will be chosen local IP(s).\n- **Custom API** — One or more custom HTTP API address(es) can be supplied with one or more `--api` or `-a` flag(s). This expects that the API responds with only the IP-address in plaintext, as only white-space is trimmed from the response. It should also support both IPv4 and IPv6 for full functionality. Unencrypted HTTP is used by default unless a protocol is specified, e.g. `https://`.\n- **Custom timeout** — Use a custom API fetch timeout in seconds with the `--timeout` or `-t` flag. By default, the timeout is three seconds.\n- **Verbose error output** — Print verbose error output with the `--verbose` flag.\n- **Print version** — Print the program version with the `--version` or `-v` flag.\n- **Print usage** — Print program usage instructions with the `--help` or `-h` flag.\n\n## Install\nSince `wut` is a standalone binary,\nit can be downloaded for the applicable platform from the [releases page](https://github.com/nixigaj/wut/releases)\nand run from anywhere.\nTo install it automatically to the command-line path, the command below can be run with elevated privileges.\n\nDarwin (macOS) and Linux:\n```shell\ncurl -sSL https://raw.githubusercontent.com/nixigaj/wut/master/install.sh | sh\n```\n\nDarwin (macOS) and Linux with sudo inserted:\n```shell\ncurl -sSL https://raw.githubusercontent.com/nixigaj/wut/master/install.sh | sudo sh\n```\n\nFreeBSD:\n```shell\nfetch -qo - https://raw.githubusercontent.com/nixigaj/wut/master/install.sh | sh\n```\n\nFreeBSD with doas inserted:\n```shell\nfetch -qo - https://raw.githubusercontent.com/nixigaj/wut/master/install.sh | doas sh\n```\n\nWindows:\n```powershell\npowershell -ExecutionPolicy Unrestricted -Command \"Invoke-RestMethod -Uri https://raw.githubusercontent.com/nixigaj/wut/master/install.ps1 | Invoke-Expression\"\n```\n\nPrebuilt binaries are available for:\n\n| OS             | `386` | `amd64` | `arm` | `arm64` |\n|----------------|-------|---------|-------|---------|\n| Darwin (macOS) |       | ✅       |       | ✅       |\n| FreeBSD        | ✅     | ✅       | ✅     | ✅       |\n| Linux          | ✅     | ✅       | ✅     | ✅       |\n| Windows        | ✅     | ✅       | ✅     | ✅       |\n\nIf your platform is not in the table, you can try building it from source below.\n\n### Build from source\n#### Dependencies\n- Go 1.16 or higher\n- Git\n- Make (not required for Windows)\n\n#### Clone repository and enter it\n\n```shell\ngit clone https://github.com/nixigaj/wut.git\ncd wut\n```\n\n#### Build\n\n```shell\nmake build\n```\n\n#### Install\nRun this command with elevated privileges:\n\n```shell\nmake install\n```\n\n#### Windows\nOn Windows `make` can be replaced with `.\\make.bat` in the commands.\n\n## APIs\n\nBy default `wut` uses:\n\n- [api64.ipify.org](https://api64.ipify.org)\n- [icanhazip.com](https://icanhazip.com) ([this is usually the first one to respond](https://blog.apnic.net/2021/06/17/how-a-small-free-ip-tool-survived/))\n- [ifconfig.me/ip](https://ifconfig.me/ip)\n- [ip.erix.dev:11313](https://ip.erix.dev:11313) ([my own service](https://github.com/nixigaj/wut-server) in Sweden) (HTTP/2 only)\n- [ipecho.net/plain](https://ipecho.net/plain)\n\n### Roll your own API with Nginx\nUse this directive and make sure that Nginx is not behind a reverse HTTP proxy:\n```\nreturn 200 \"$remote_addr\";\n```\n\nIf you are feeling brave, you can also try the [Rust-based server](https://github.com/nixigaj/wut-server) that I use for [ip.erix.dev:11313](https://ip.erix.dev:11313).\n\n## License\nAll files in this repository are licensed under the [MIT License](LICENSE).\n\nThe icon is a reference to the [Confused Nick Young / Swaggy P](https://knowyourmeme.com/memes/confused-nick-young-swaggy-p) meme.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixigaj%2Fwut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixigaj%2Fwut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixigaj%2Fwut/lists"}