06.05.2009

IP from Command Line

by Rahul Pisharody

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

Comments

  1. digitalpbk on 07.29.2009

  2. Rahul Pisharody on 07.29.2009

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

Leave a Reply