Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    Regular Coder
    Join Date
    Jan 2003
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How can I display information about a users IP adress?

    I want to make something that will display a users IP adress, and then show information about that ip adress. Is this possible? Thank you.

    BTW, I already know how to display a users IP address.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.xpenguin.com/ip-atlas.php

    downloadable code that allows pinpointing the IP to a recognized location - something to play around with anyway.
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #3
    Regular Coder
    Join Date
    Jan 2003
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay, thanks!

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    This little Earth.
    Posts
    383
    Thanks
    0
    Thanked 0 Times in 0 Posts
    very cool, Ökii!

    just another question. does every single computer in the world have a unique IP address?
    i'm kind of confused because then in the phpdev package, why does Apache run on your PC only as either on "localhost" or "127.0.0.1"?
    'If you don't stand for something, you'll fall for anything.'

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    127.0.0.1 is the loopback address. It's not actually your IP address, it just tells apache to use the current computer instead of searching for a remote server. Same thing if you ping 127.0.0.1, you'll be pinging yourself.

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Location
    This little Earth.
    Posts
    383
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so that does mean every computer has a unique ip, right, or not? don't mind my smart self
    'If you don't stand for something, you'll fall for anything.'

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    First off you have to realize that there are IPs reserved for use when connecting to the net and there are IPs for local networks only (not connected to the net 192.168.xxx.xxx).

    Every computer connected directly to the internet has a unique address.

    In a small network, like in an office building you might have 200 computers connecting to the internet through one server, all those pcs have an IP which is unique within their network and there will be one server that has two IPs, a local once such as 192.168.0.1 and an external IP, such as 24.172.22.5. All the pcs in the office actually use the servers IP through the NAT protocol to access the internet.

    For every network, there can be only one instance of an IP. Whether it be in my home net with 3 pcs, Company A's net with 200 or the internet with millions.

    Within my net I can have for example 192.1.1.28 and Company A can also use it as an IP because they are two seperate networks.

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #9
    Regular Coder
    Join Date
    Jul 2002
    Location
    This little Earth.
    Posts
    383
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmmmm...just checked out the links.thanks a lot for the info. still seems slightly confusing.
    could i ask a bit more?

    i take it that you're saying that while computers individually connected to the internet have unique external IPs, those connected through network servers don't necessarily have to. meaning that all computers in two separate networks might all be using the same IP address on the internet, but two individual computers can't. right?

    then:

    1. as stated on one of the links u gave, user IP addresses are assigned to them by their ISPs, does that mean everyone using the same ISP is connected to the internet using the same IP address?

    2. if i'm right above, then let's suppose there's a webmaster who'd like to block a certain IP, because, say, the user's breaking the rules or something... then the webmaster can't be sure he's blocking only that specific user, or if he's blocking an entire network using that IP, or all the customers of one ISP?
    Last edited by ASAAKI; 04-19-2003 at 09:02 PM.
    'If you don't stand for something, you'll fall for anything.'

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    1. No, everyone connecting through an ISP has a unique address.

    I'm really bad at explaining these kinds of things, but I drew a little image. Maybe it'll help. Take note of the quality graphics.
    Attached Thumbnails Attached Thumbnails How can I display information about a users IP adress?-ips.gif  

  • #11
    Regular Coder
    Join Date
    Jul 2002
    Location
    This little Earth.
    Posts
    383
    Thanks
    0
    Thanked 0 Times in 0 Posts
    wow - thanks!
    no probs with the graphic quality hehe.

    so what i understand is that although every single user has a unique combination of external/internal IP, the only way to block a user is to block his/her external IP (the one that defines the network or ISP). is that right?
    'If you don't stand for something, you'll fall for anything.'

  • #12
    Regular Coder
    Join Date
    Jul 2002
    Location
    This little Earth.
    Posts
    383
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok i get it. so blocking IPs isn't as nice as I thought it could be... you could lose hundreds of viewers just because they're on the same network or something.

    anyway your image explains it very well thanks
    'If you don't stand for something, you'll fall for anything.'

  • #13
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    np


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •