Below is a nice and elegant way to find out your public IP using curl
alias myip='curl --silent checkip.dyndns.org | egrep --only-matching "[0-9\.]+"' root@server:~# myip 1.79.21.123
References
Notes about various (technical) topics and encountered or solved puzzles from engineering, devops or networking disciplines.
alias myip='curl --silent checkip.dyndns.org | egrep --only-matching "[0-9\.]+"' root@server:~# myip 1.79.21.123
No comments:
Post a Comment