✅ 1. 내부 IP (로컬 IP) 확인
터미널에서 다음 명령어 입력:
ip addr show
혹은 간단하게
ip a
인터페이스 별로 확인하려면:
ip -4 addr show eth0
✅ 2. 외부 IP (공인 IP) 확인
외부 서버에 요청해서 확인:
curl ifconfig.me
또는
curl ipinfo.io/ip
터미널에서 다음 명령어 입력:
ip addr show
혹은 간단하게
ip a
인터페이스 별로 확인하려면:
ip -4 addr show eth0
외부 서버에 요청해서 확인:
curl ifconfig.me
또는
curl ipinfo.io/ip