WTF??
what the fu** ?
How can that whatismyipaddress.com be trusted for such mission critical system configuration?
it claims to find out your current IP.
I am seeking help from burry now. HE may be help.
I have more text to read and then trial in testing environment and then raised question. what is wrong here ?
FreeBSD used to be nice to me.
http://www.geekuprising.com/p/g/show_page/15/
If you have ADSL/cable with a router, you probably have a dynamically assigned internal IP on your machine. This set of scripts will help you automagically get your IP in combination with a box outside your router.
Because your internal machine will have an internal IP assigned by the router, this one is tricky. My suggestion- if you want to run a service on your box, figure out "one-to-one NAT" translation, and give your machine a static internal IP via your router. You can then route external requests directly to your box sitting on the internal IP, allowing you to run services predictably.
Because your machine has the internal IP bound to it's adapter, and doesn't have a full qualified domain name, you have to look outside your router to get your IP. That's what this pair of scripts does. You'll need to have the "ipreport.pl" script set up on some other box, external to your router.
You then ding the "ipreport.pl" <---------- where is it?????????
script with the "ipget.pl" <--------------- where is this script in your site. our htdig does not search out.
script from the box whose IP you want to sniff out, and voila! You've got your external IP!
#!/usr/bin/perl -wT
# ipreport.pl- the script that sits external to your router
use strict;
use CGI;
my $q=CGI->new();
print $q->header().$q->remote_addr()."\n";
and
#!/usr/bin/perl -wT
# ipget.pl- the script that retrieves your IP for you. Run this on the box
# whose IP you want to figure out. You can make this part of a larger program,
# obviously.
use LWP::Simple;
my $ip=get("http://the.other.box.com/cgi-bin/ipreport.cgi");
print $ip;