はじめに
自宅にIPv6が来るようになったので以前作ったグローバルIPアドレス取得ツールgipをIPv6対応にしてみました。
その際に調査したIPアドレス取得サービスの一覧もまとめておきます。
ツールの紹介
- リポジトリ: https://github.com/dalance/gip
- 紹介記事: グローバルIP取得ツールを作ってみた
最新版をこちらからダウンロードして以下のように使えます。
$ gip -4
xxx.xxx.xxx.xxx
$ gip -6
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
IPアドレス取得サービス
実際にはもう少し見つけましたが、応答の遅いものや
IPv4/IPv6を明示的に指定できないものは外しています。
Site | URL | Type | Format |
---|---|---|---|
inet-ip.info | http://inet-ip.info/ip | v4 | plane |
httpbin.org | http://httpbin.org/ip | v4 | json |
ipify.org | http://api.ipify.org | v4 | plane |
ipv6-test | http://v4.ipv6-test.com/api/myip.php | v4 | plane |
ipv6-test | http://v6.ipv6-test.com/api/myip.php | v6 | plane |
ident.me | http://v4.ident.me | v4 | plane |
ident.me | http://v6.ident.me | v6 | plane |