Tuesday, June 16, 2015

To find your ip address

To find your local IP address type the following command:
  • ip addr | grep global | grep 'inet ' | sed -e 's/\/.*//' -e 's/.*inet //'

To find your global or internet ip address, type the following command:
  • curl -w '\n'  ident.me
or
  • curl http://icanhazip.com 

No comments:

Post a Comment