2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

自分のサーバーに紐づいているGlobal IP関連情報を確認する方法

Posted at

ifconfig.meを利用する。

Global IPを取得
$ curl ifconfig.me

or 

$ curl ifconfig.me/ip
User Agentを取得
$ curl ifconfig.me/ua
Languageを取得
$ curl ifconfig.me/lang
Encodingを取得
$ curl ifconfig.me/encoding
MIME Typeを取得
$ curl ifconfig.me/mime
charsetを取得
$ curl ifconfig.me/charset
X-Forwarded-Forを取得
$ curl ifconfig.me/forwarded
全てを取得
$ curl ifconfig.me/all
全てをjsonでr取得
$ curl ifconfig.me/all.json
2
0
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?