컴퓨터/노트북/인터넷
IT 컴퓨터 기기를 좋아하는 사람들의 모임방
조회 수 3615 추천 수 0 댓글 0
[root@zetawiki ~]# curl bot.whatismyipaddress.com 246.80.135.79
console
[root@zetawiki ~]# curl icanhazip.com 246.80.135.79
console
[root@zetawiki ~]# curl ipv4.icanhazip.com 246.80.135.79
console
[root@zetawiki ~]# curl http://ipecho.net/plain 246.80.135.79
console
[root@zetawiki ~]# curl ifconfig.me 246.80.135.79
console
- → 외부IP(공인 IP)
[root@zetawiki ~]# ifconfig -a | grep "inet " | grep "Bcast:" | awk '{print $2}' | awk -F: '{print $2}' 192.168.0.139
console
- → 내부IP