IP from Command Line

This is a quick post. I was wondering how to get my IP Address without going to popular sites. I came up with this bash script

#!/bin/bash -
IP=$(curl -s www.slurpware.org);
echo $IP;
exit 0;
 

Related

Tags: , ,

2 Responses to “IP from Command Line”

  1. digitalpbk Says:

    http://labs.kitiyo.com/wtsmyip.php

  2. Rahul Pisharody Says:

    Definitely better. Saves the trouble to load heavy websites :)

Leave a Reply