LoginSignup
7
5

More than 5 years have passed since last update.

[Linux] グローバルIPを調べる(Webサービス or curl)

Last updated at Posted at 2016-09-13

調査する機会があったので自分用メモ

Webサービスを使う

googleで「グローバル ip」などで調べると出てきますが、以下のサーピスなどがあります。

アクセス情報【使用中のIPアドレス確認】

curl を使う

inet-ip.info というドメインでも見ることができます。Go製のWebサービスのようで、ソースも公開されています。
json, yaml, tomlといった形式での取得にも対応しているようです。

$ curl inet-ip.info

参考

グローバルIPをcurlで確認 - Qiita
サーバから外に出ていく時のグローバルIPをコマンドで調べる - Qiita

7
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
5