问题:
服务器地址为net映射地址,本机ifconfig无法直接获取映射的公网地址。
方法:
[root@TiaoBan-1 nidongde]# curl http://ifconfig.me 50.1xx.2xx.18
ifconfig.me的地址为日本地址,访问会比较慢。
其他网址访问:
$ curl ifconfig.me $ curl icanhazip.com $ curl ident.me $ curl ipecho.net/plain
问题:
服务器地址为net映射地址,本机ifconfig无法直接获取映射的公网地址。
方法:
[root@TiaoBan-1 nidongde]# curl http://ifconfig.me 50.1xx.2xx.18
ifconfig.me的地址为日本地址,访问会比较慢。
其他网址访问:
$ curl ifconfig.me $ curl icanhazip.com $ curl ident.me $ curl ipecho.net/plain
转载于:https://www.cnblogs.com/pzzning/p/9198382.html