{"id":13581801,"url":"https://github.com/bramp/myip","last_synced_at":"2025-04-30T22:23:29.947Z","repository":{"id":17616428,"uuid":"81748211","full_name":"bramp/myip","owner":"bramp","description":"(A better) What's My IP Address web application","archived":false,"fork":false,"pushed_at":"2023-03-07T03:00:23.000Z","size":2413,"stargazers_count":58,"open_issues_count":9,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-21T06:15:46.273Z","etag":null,"topics":["appengine","dns","golang","ipv6","whois"],"latest_commit_sha":null,"homepage":"https://ip.bramp.net","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/bramp.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},"funding":{"github":"bramp","buy_me_a_coffee":"bramp"}},"created_at":"2017-02-12T18:45:14.000Z","updated_at":"2025-04-19T20:31:08.000Z","dependencies_parsed_at":"2024-10-25T19:58:57.642Z","dependency_job_id":"00980686-6306-4cb1-abea-bf700209cfc6","html_url":"https://github.com/bramp/myip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fmyip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fmyip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fmyip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fmyip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramp","download_url":"https://codeload.github.com/bramp/myip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790355,"owners_count":21644208,"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":["appengine","dns","golang","ipv6","whois"],"created_at":"2024-08-01T15:02:15.001Z","updated_at":"2025-04-30T22:23:29.922Z","avatar_url":"https://github.com/bramp.png","language":"Go","readme":"# MyIP [![License](https://img.shields.io/github/license/bramp/myip.svg)](https://github.com/bramp/myip#licence-apache-2) [![Build Status](https://img.shields.io/travis/bramp/myip.svg)](https://travis-ci.org/bramp/myip) [![Report card](https://goreportcard.com/badge/github.com/bramp/myip)](https://goreportcard.com/report/github.com/bramp/myip)\nby Andrew Brampton ([bramp.net](https://bramp.net))\n\n\u003c!--\nAdd these when available:\n[![Coverage](https://img.shields.io/coveralls/bramp/myip.svg)](https://coveralls.io/github/bramp/myip)\n[![GoDoc](https://godoc.org/github.com/bramp/myip?status.svg)](https://godoc.org/github.com/bramp/myip)\n--\u003e\n\n*(A better)* What's My IP Address web application.\nDetermines both your IPv4 and IPv6 addresses, issues WHOIS and reverse DNS lookups, and shows all\nyour HTTP headers.\n\nCheck it in action: [ip.bramp.net](https://ip.bramp.net/) or [read about it on my blog](https://blog.bramp.net/post/2017/02/20/building-a-better-whats-my-ip-site/).\n\n[![ip.bramp.net screenshot](screenshot.png)](https://ip.bramp.net/)\n\nThis project was quite literally hacked out in one weekend, and was my first App Engine project.\n\n## Install\n\n### Prerequisites\n\n* [Google Cloud SDK](https://cloud.google.com/sdk/docs)\n* AppEngine Go SDK\n\n    ```shell\n    $ gcloud components install app-engine-go\n    ```\n\n* [Make](https://www.gnu.org/software/make/) (which comes on Linux or Mac)\n* [npm](https://www.npmjs.com/)\n\n### Domains\n\nAs designed, this Go application will run on the Standard Google App Engine. It requires\ntwo to three host names. One that is IPv4 only, and one that is IPv6 only. In my configuration\nI have ip.bramp.net that has both A and AAAA records, ip4.bramp.net that has only A records,\nand ip6.bramp.net that only has AAAA records. These all point to the same App Engine instance.\n\n```\n$ dig ip.bramp.net \nip.bramp.net.\t\t300\tIN\tA\t216.239.32.21\nip.bramp.net.\t\t300\tIN\tAAAA\t2001:4860:4802:32::15\n\n$ dig ip4.bramp.net\nip4.bramp.net.\t\t300\tIN\tA\t216.239.32.21\n\n$ dig AAAA ip6.bramp.net\nip6.bramp.net.\t\t300\tIN\tAAAA\t2001:4860:4802:32::15\n```\n\nAll three domain names should be configured in main.go (find the prodConfig var).\n\nTo deploy:\n\n```shell\nmake deploy # to prod\nmake stage  # to stage\n```\n\n## Development\n\nTo run locally we use the addresses, [localhost:8080](http://localhost:8080),\n[127.0.0.1:8080](http://127.0.0.1:8080), and [http://[::1]:8080](http://[::1]:8080).\nThe first can be either, and the latter are IPv4 and IPv6 respectively.\n\nTo start up a local instance, just execute:\n\n```shell\nmake serve\n```\n\nTo test:\n\n```shell\nmake test\n```\n\n### Libraries\n\nTo keep libraries up to date run:\n\n```shell\nmake check-updates\nmake veryclean\nmake test\n```\n\n\n## TODO\n\n- [ ] Add rate limiting of requests\n- [ ] Add caching of DNS and WHOIS records (including the iana IP ranges)\n- [ ] Add configuration file, so can be hosted on different domains\n- [ ] Add a favicon.ico\n- [ ] Add Make test (which checks with different build tags, e.g macos,appengine linux,appengine)\n- [ ] Implement a App Engine Flex, and other PaaS environments\n- [ ] Minify all css and js and combine into one file\n- [ ] Do better at determining the root cause errors. e.g If both IPv4/IPv6 fail, then perhaps problem with the site. If IPv6 fails after 30 seconds, perhaps problem with IPv6 connectivity.\n- [ ] Refactor the app. We don't need to seperate appengine and not appengine anymore. The code is almost identical.\n\n## Licence (Apache 2)\n\n*This is not an official Google product (experimental or otherwise), it is\njust code that happens to be owned by Google.*\n\n```\nCopyright 2017,2020 Google Inc. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n","funding_links":["https://github.com/sponsors/bramp","https://buymeacoffee.com/bramp"],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fmyip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramp%2Fmyip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fmyip/lists"}