Get IP address from whatismyip.com

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

Get IP address from

Postby moose » 03 Jan 2007 21:53

I've been looking for a script that can retrieve your IP address from http://www.whatismyip.com (or a similar website)
I found this while searching the forums but it doesn't seem to work anymore.
Can anybody help? Thanks in advance
moose
 
Posts: 2
Joined: 03 Jan 2007 21:49

This site is better,

Postby sdemon » 07 Jan 2007 06:00

Perl, *nix, external command
Code: Select all
IRC::add_command_handler("myip","myip");
sub myip {IRC::print qx'/bin/sh -c "wget -q -O - http://checkip.dyndns.org/ | cut -d \" \" -f 6 | cut -d \< -f 1"'}

Another way, suitable even for Windows. Perl, LWP (to install it do: # cpan LWP)
Code: Select all
use LWP::Simple;
my $url = "http://checkip.dyndns.org/";
my $ip = get $url;
$ip =~ s/<html><head><title>Current IP Check<\/title><\/head><body>Current IP Address: |<\/body><\/html>\r\n//g;
sdemon
 
Posts: 12
Joined: 07 Jan 2007 05:41

Postby moose » 07 Jan 2007 08:59

Thanks a lot! :)
moose
 
Posts: 2
Joined: 03 Jan 2007 21:49

Re: Get IP address from whatismyip.com

Postby recursion » 20 Aug 2012 17:00

Hi whether you wnat to know your ip address then visit http://www.ip-details.com/ here they provide ip search tool which display your ip address along with other details about the ip .The information consists of ip location ,country name ,latitude and longitude information etc..
recursion
 
Posts: 2
Joined: 20 Aug 2012 16:57


Return to Scripts and Plugins

Who is online

Users browsing this forum: No registered users and 1 guest