Development
나의 public IP 찾기
chbae
2023. 5. 12. 08:00
반응형
가끔 외부에 노출된 나의 IP 정보가 필요할 때가 있다. 그럴때 다음과 같은 방법들을 이용하면 된다.
1. 웹사이트 접속
https://www.whatismyip.com/ 를 접속하면 첫 화면에 다음과 같이 나온다.
2. Command Line
명령어 1 - dig
$ dig +short myip.opendns.com @resolver1.opendns.com
95.xx.xx.122
명령어 2 - curl
$ curl ifconfig.co/
95.x.x.122
728x90
반응형