macos查看本机IP地址

  1. 打开terminal
  2. 查看硬件所在端口networksetup -listallhardwareports
  3. 查看各个端口所在IP地址networksetup -listallhardwareports

Notice that ipV4 address is following the inet keyword

posted @ 2021-07-05 11:13  Bravo_Jack  阅读(137)  评论(0编辑  收藏  举报