Получение моего общедоступного IP через [закрытый] API

74
задан Slava V 22 June 2010 в 22:22
поделиться

1 ответ

Хотя они и не от крупных компаний, все они должны работать:

curl icanhazip.com
curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: \([0-9\.]*\).*/\1/g'
host -t a dartsclink.com | sed 's/.*has address //'
curl curlmyip.com
curl ifconfig.me # this has a lot of different alternatives too, such as ifconfig.me/host

Источник

95
ответ дан 24 November 2019 в 11:57
поделиться
Другие вопросы по тегам:

Похожие вопросы: