LoginSignup
11
12

More than 5 years have passed since last update.

LANに接続されているIPアドレスを知る(MAC OSX)

Posted at

1. 自分のIPを確認する

ifconfigをつかって、自分が使っているipを確認する

ifconfig | grep netmask
        inet 127.0.0.1 netmask 0xff000000
        inet 192.168.1.27 netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.33.1 netmask 0xffffff00 broadcast 192.168.33.255

2. ブロードキャスト宛にpingを発行する

上記の例だと192.168.1.***をつかっているらしいので、そんおブロードキャストアドレスにpingをうつ

ping 192.168.1.255

3. arpで確認

arp -a

ntt.setup (192.168.1.1) at 0:b:a2:d4:42:98 on en0 ifscope [ethernet]
? (192.168.1.2) at xx:xx:xx:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.1.3) at xx:xx:xx:xx:xx:xx on en0 ifscope [ethernet]
... 続く ...
11
12
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
11
12