0
0

More than 1 year has passed since last update.

自分のIPアドレスを(外から)調べる一番速い方法

Last updated at Posted at 2022-01-03

自分のIPアドレスを(外から)調べる一番速い方法

自分のIPアドレスがWAN (ワイド・エリア・ネットワーク、つまり自宅などの外側のネットワーク) からどう見えるかは以外と調べにくい。
自端末からifconfigなどで見えるアドレスはNATなどで変換されていることがあるので、
正確に知ろうと思うとLAN外のサーバにアクセスしてみるほかない。

ターミナルから

curl http://ipinfo.io/ip

とやるのが今のところおすすめ。IPアドレスを教えてくれるサーバはいろいろあるが、ここはIPアドレス以外のタグなどの装飾文字列が何もついてこないところが良い。

0
0
1

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
0
0