Networking Forums

Networking Forums > Computer Networking > Linux Networking > Getting My IP Address

Reply
Thread Tools Display Modes

Getting My IP Address

 
 
Ryan Ritten
Guest
Posts: n/a

 
      09-22-2003, 04:26 PM
Stupid question time:

ok... usually when i want to find out what my ip address is I go to
www.whatismyip.com ... is reported my ip address to me. but when i
went to www.whatismyipaddress.com (note that they are 2 different
websites) it gave me a different ip address.

Why is that? Do I have 2 ip addresses? I only ask this because my
website isn't working... I think my ip address for my dns is wrong.
but i can't figure out what my actual ip address is

any ideas?

-Ryan Ritten
 
Reply With Quote
 
 
 
 
Allan Bruce
Guest
Posts: n/a

 
      09-22-2003, 04:32 PM

"Ryan Ritten" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Stupid question time:
>
> ok... usually when i want to find out what my ip address is I go to
> www.whatismyip.com ... is reported my ip address to me. but when i
> went to www.whatismyipaddress.com (note that they are 2 different
> websites) it gave me a different ip address.
>
> Why is that? Do I have 2 ip addresses? I only ask this because my
> website isn't working... I think my ip address for my dns is wrong.
> but i can't figure out what my actual ip address is
>
> any ideas?
>
> -Ryan Ritten


Try
ifconfig -a
Allan


 
Reply With Quote
 
Jem Berkes
Guest
Posts: n/a

 
      09-22-2003, 04:35 PM
> ok... usually when i want to find out what my ip address is I go to

You have one IP address but your ISP may be using an invisible web proxy;
so when you visit web sites it may in fact be a different IP address
connecting.

Try:
http://jberkes.freeshell.org/detect-proxy.cgi
http://www.pc9.org/cgi-bin/get-ip
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      09-22-2003, 10:38 PM
On 22 Sep 2003, Ryan Ritten <(E-Mail Removed)> wrote:
> Stupid question time:
>
> ok... usually when i want to find out what my ip address is I go to
> www.whatismyip.com ... is reported my ip address to me. but when i
> went to www.whatismyipaddress.com (note that they are 2 different
> websites) it gave me a different ip address.
>
> Why is that? Do I have 2 ip addresses? I only ask this because my
> website isn't working... I think my ip address for my dns is wrong.
> but i can't figure out what my actual ip address is


The IP where you posted this news from was 24.71.223.143. Which one is
different from that? It is possible that your firewall or server
configuration blocked outside access (check firewall and server logs).

Some cable operations may block incoming port 80. You might try
configuring apache for a different port and try that port in the URL (and
make sure your firewall is not blocking that port).

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
Douglas Clinton
Guest
Posts: n/a

 
      09-23-2003, 12:00 AM
On Mon, 22 Sep 2003 09:26:31 +0000, Ryan Ritten wrote:

> Stupid question time:
>
> ok... usually when i want to find out what my ip address is I go to
> www.whatismyip.com ... is reported my ip address to me. but when i went
> to www.whatismyipaddress.com (note that they are 2 different websites) it
> gave me a different ip address.
>
> Why is that? Do I have 2 ip addresses? I only ask this because my
> website isn't working... I think my ip address for my dns is wrong. but i
> can't figure out what my actual ip address is
>
> any ideas?
>
> -Ryan Ritten


Here is a perl script I wrote to find out your public(WAN IP) and private
IP. I use it to verify my dynamic DNS settings along with the command:
host mydomain.ca

Here is the script.
-----------

#!/usr/bin/perl
# This is a perl version of Robin Keir's IP2 at http://keir.net/ip2.html
# it gets your Wan IP address and provate IP address if you have one
#
# This script is for GNU/linux and BSD if you are running windows, use Robin Keir's
# program at the site above.
#
# This script will print out your WAN address and name as seen from a host outside
# your internal network
# This is useful for those behind a NAT router and need to know the Internet view of
# your host, useful for various filesharing apps and IRC stuff
#
# The following is a list of servers you can use/try if you need to substitute
# the default ecerami.com address
#
# http://ecerami.com/servlet/coreservl...owCGIVariables
# http://www.sanford.com/introcgi/cgi-...e.pl?something
# http://www.mueloliva.es/cgi-bin/variables.cgi?'0024'
# http://inetarena.com/cgi-bin/environment.pl?this=that
# http://curry.edschool.virginia.edu/g.../cgi-test.html
# http://www.cfhub.com/examples/cgi/
#
# This script was created by Douglas Clinton (E-Mail Removed)
# It is disrtibuted inder the GNU GPL if it doesnt work send me an email
# If you think that this script has damaged your computer get a brain scan...it can't
#
# Douglas Clinton


use LWP::Simple;

# First lets get the info we need from our favorite site
@url=get("http://ecerami.com/servlet/coreservlets.ShowCGIVariables");


# This section Finds the match for the WAN IP
foreach $i (@url) {
if ($i =~ /(\d+)(\.\d+){3}/) {
@stuff = $i;
#print "$i";
$string = $i;
$string =~ s/<([^>]|\n)*>//g ; # removes html tags
@stuff = $string;
#print "\n$string";
}
}

@words = split " ", $string;


$raw_addr = $words[13];
$raw_name = $words[14];

$clean_addr = substr($raw_addr, 11, 13);
# this next line prints the your WAN address
print "$clean_addr\n";


$clean_name = substr($raw_name, 11, 45);
# this nest line prints your WAN name
print "$clean_name\n";

----------
THE END
----------

I hope that helps...let me know if you have any problems with it.

--
GNU/Linux is God
get used to it
(E-Mail Removed)
Linux User # 276385

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipex Address: Post Office wont sent registered letter as they say the address is invalid! W Broadband 16 05-13-2008 09:30 PM
Coffee shop wifi will not give me IP address, but gives everyone else IP address. But static IP works! Jennifer R Wireless Internet 5 09-30-2007 06:12 AM
access violation at address 004075e5 module WUSB54G4.exe of address 00000368 Houndog Wireless Internet 10 02-13-2006 06:56 PM
"access violation at address 004075e5 module WUSB54G4.exe of address 00000368 Houndog Windows Networking 0 02-12-2006 09:40 PM
When Linux PC boots, Does it sends RARP packet to get its IP address by embedding its Hardware address? santa19992000@yahoo.com Linux Networking 2 10-16-2005 10:40 PM



1 2 3 4 5 6 7 8 9 10 11