Tuesday, June 16, 2015

To find your ip address

To find your local IP address type the following command:
  • ip -o -f inet address show scope global|grep -Po "(?<=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