F
Fred
I want to keep a log of my IP-address. I installed the module
Sys::HostIP on my Win98SP system, which is connected to the internet via
cable-modem router:
#!/usr/bin/perl -w
use strict ;
use Sys::HostIP ;
my $ipaddr= hostip;
print $ipaddr, "\n";
This code works fine, however all I get is the internal (LAN-side)
IP-address 192.168.1.100 which is useless. Is there a way to get the
external (web-side) IP-address using Perl?
I know that there are websites like
http://home.jtan.com/~reader/my_tricky_remote_addr.cgi
which return my IP-address, but I would prefer not to depend on a third
party.
Sys::HostIP on my Win98SP system, which is connected to the internet via
cable-modem router:
#!/usr/bin/perl -w
use strict ;
use Sys::HostIP ;
my $ipaddr= hostip;
print $ipaddr, "\n";
This code works fine, however all I get is the internal (LAN-side)
IP-address 192.168.1.100 which is useless. Is there a way to get the
external (web-side) IP-address using Perl?
I know that there are websites like
http://home.jtan.com/~reader/my_tricky_remote_addr.cgi
which return my IP-address, but I would prefer not to depend on a third
party.