외부IP는 ifconfig 만으로는 안되는군요.

그래서 찾아봤습니다.


How can I find my public IP using the terminal?


wget http://ipecho.net/plain -O- -q ; echo



간단하네요

whatismyip.com 에서 찾아본결과 Membership에 가입된것만 보여준다는데

이곳은 그냥 보여주네요!






매일 1시에 Mail로 IP를 쏴줘요! 예압압압!


┗  crontab -e

00 01 * * * wget 'http://automation.whatismyip.com/n09230945.asp' -q -O - | mail <메일 주소> -s '제목'


공인IP가 자꾸바뀌는경우에 유용하겠네요





출처 : http://askubuntu.com/questions/145012/how-can-i-find-my-public-ip-using-the-terminal

mail : http://cafe.naver.com/an02/784

crontab 사용법 : http://blog.naver.com/seilius?Redirect=Log&logNo=130152798700



'개념/이론' 카테고리의 다른 글

리눅스(Ubuntu)를 접하다.  (0) 2013.03.29
Programmer? Programer?  (0) 2013.02.15
by 개발자가 되자! 2013. 3. 28. 20:33
| 1 |