#!/usr/bin/perl -w use strict; use Socket; print inet_ntoa(gethostbyname('www.whatismyip.com') ." ");