View Full Version : 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.
downloadable code that allows pinpointing the IP to a recognized location - something to play around with anyway.
04-19-2003, 02:58 PM
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"?
04-19-2003, 04:53 PM
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.
04-19-2003, 08:07 PM
so that does mean every computer has a unique ip, right, or not? don't mind my smart self :o
04-19-2003, 08:33 PM
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 22.214.171.124. All the pcs in the office actually use the servers IP through the NAT (http://www.webopedia.com/TERM/N/NAT.html) 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 126.96.36.199 and Company A can also use it as an IP because they are two seperate networks.
04-19-2003, 08:35 PM
04-19-2003, 09:00 PM
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?
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?
04-19-2003, 09:56 PM
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.
04-19-2003, 10:27 PM
wow - thanks!:):D
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?
04-19-2003, 10:39 PM
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 :D
04-19-2003, 10:59 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.