最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Mac中如何确定当前电信网络的IP地址

Mac crifan 3982浏览 0评论

折腾:

【已解决】Sequel Pro连接mysql数据库出错:MySQL said: Host is not allowed to connect to this MySQL server

期间,已知当前的IP是58.208.67.177

现在需要:

找到确认当前的电信网络的出口的IP,

以便于之后IP地址变化后,找到变化后的最新的IP地址。

mac 查看 电信 IP地址

mac check local network ip address

Find local network devices using ping | Macworld

➜  ~ arp -a
domain.name.dlink.com (192.168.0.1) at 3c:1e:4:90:5:4b on en0 ifscope [ethernet]
? (192.168.0.255) at ff:ff:ff:ff:ff:ff on en0 ifscope [ethernet]
? (224.0.0.251) at 1:0:5e:0:0:fb on en0 ifscope permanent [ethernet]
? (239.255.255.250) at 1:0:5e:7f:ff:fa on en0 ifscope permanent [ethernet]

ipconfig getifaddr en1 en1

没有输出:

➜  ~ ipconfig getifaddr en1 en1
➜  ~

mac中的网络中,没有显示对外的IP地址:

只有192.168的地址:

mac check external ip address

Quickly Get an External IP Address from the Command Line

去试试:

➜  ~ curl ifconfig.me
58.208.67.177

果然可以。

然后去单独打开:

What Is My IP Address? – ifconfig.me

显示结果是:

搜:

网络地址查询

可以找到很多:

IP查询|IP地址查询-世界网络 www.linkwan.com

查询输入

58.208.67.177

查询定位

江苏省苏州市

-》

还可以显示地图的位置

IP地址查询–手机号码查询归属地 | 邮政编码查询 | 长途电话区号 | 身份证号码验证在线查询网

“您的IP是:[58.208.67.177] 来自:江苏省苏州市 电信”

【总结】

Mac中获取当前电信网络的外网IP地址(不是198.168.xxx.xxx的内网地址)的办法是:

curl ifconfig.me

或者去打开:

IP查询|IP地址查询-世界网络 www.linkwan.com

或:

IP地址查询–手机号码查询归属地 | 邮政编码查询 | 长途电话区号 | 身份证号码验证在线查询网

均可以查看到当前的网络的提供商和IP

或:

What Is My IP Address – 100% Accuracy Free IP Lookup Tool

 

转载请注明:在路上 » 【已解决】Mac中如何确定当前电信网络的IP地址

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.161 seconds, using 22.14MB memory