LoginSignup
2
1

More than 5 years have passed since last update.

CUI環境しかないときにグローバルIPを調べる簡単な方法

Last updated at Posted at 2018-03-15

前提条件

正引きできる DNS 環境があること
ifconfig.io の名前解決エントリを /etc/hosts に書いてもいけると思います。

直接

$ curl ifconfig.io

プロキシ経由

$ curl --proxy ip_addr:port ifconfig.io

Windows の場合

Windows 用の curl をどっかに置いて PATH を通す

curl / Download

使い方は Linux/Windows で同じ

2
1
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
1