Cloud Platform/AWS

[AWS] IP 주소 확인 명령어

향채소 2023. 2. 8. 16:07

사설(private) IP

ifconfig

 

공용(public) IP

case 1)

curl http://169.254.169.254/latest/meta-data/public-ipv4

case 2)

curl ifconfig.me