[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ip own modem/router ADSL



Am 2005-11-15 09:37:48, schrieb A J Stiles:

> If you are lucky, the first hop will be your router's own external IP address.  
> If you are unlucky, the first hop will be an "unroutable" 10.x.y.z address -- 
> this means your ISP is connecting you through a secondary router  {mine does 
> that}.  In which case, get someone whose IP address you *do* know to put this 
> in their cgi-bin:
> 
> #!/usr/bin/perl -w
> use strict;
> my $ip_address = $ENV{"REMOTE_ADDR"};
> print qq|Content-type: text/plain
> 
> Your IP address is $ip_address.
> |;
> exit 0;
> 
> Then visit it with a web browser.

And if he has no cgi-bin?

Better:

  __( '/home/michelle.konzack/public_html/ip.php' )_____________________
 /
| <?php echo $_SERVER['REMOTE_ADDR'] ?>
 \______________________________________________________________________

it works on most common free hosting providers.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



Reply to: