Ok, I created a simple IP checker for my website, that displays the IP of everyone that is registered. (Because for the game I'm making each user is only allowed one account) This is the results:
As you can see, many people have the same IP, "38.99.70.199 ". I live in Houston, Tx, United States. Another user claimes he lives in Austrialia, and another claims he lives in Indiana, United States. And we all have the same IP address. So something's obvisouly wrong, because even if all those users were lying about where they live, there's no way more than half my user database can live in houston, and then still in the same area of houston as I do. What am I missing here?
Ok, I'lll try that. Also I was wondering what the range if an IP address is, like does your neighbor have the same IP address as you? Does one IP cover 3 or 4 houses, or an entire block, or what?
Unknown98 wrote: Ok, I'lll try that. Also I was wondering what the range if an IP address is, like does your neighbor have the same IP address as you? Does one IP cover 3 or 4 houses, or an entire block, or what?
IP Addresses are unique addresses for every device connected to the internet. When two devices share the same IP address (on the same subnet) problems occur. Your PC / router is supplied with a DHCP WAN IP address almost all of the time. Certain providers can assign fixed IP addresses (for companies e.d.)
No two computers (or anything that connects to the internet) have the same IP address. In fact, the world is running out of IPv4 (the current type of IP's) unique addresses. It was planned that there would be one computer per family. But later to come in years will be IPv6, where each person will be able to have up to 1000's of computers, not that that is really a 'limit'. :P
Ok, I looked in teh database. It appears that the users that have registered, but never logged in, all have the same IP address. BUT, this is not consistent. MOST of those users have the same IP, but some that have logged in also have that same IP, and more than one person has that same IP. So, it could be that some users have registered twice, I will find out. Is it normal for users that have registered, but not logged in, to all have the same IP address?
EDIT: Well, hold up. 2 users that have the same IP both are active and have logged in, posted on the forum etc. I know them from another site that has an IP check, and they have different IP's there. So they are not the same user, yet the DB shows that they have the same IP. I just don't get it. One user DID create 2 different accounts, and has never logged in, and both his accounts have thie IP: 68.88.5.179
Now, 2 other users (that I'm pretty sure are different people), and that have never logged in, also have the same IP address: 68.88.5.179
5 more users that have never logged in, and that all have the same IP, and that I'm pretty sure they are different people, have this IP: 38.99.70.199
7 more users have the same IP address, 38.99.70.199. All HAVE logged in. some of those users have even posted on the forum. I know at least 2 of those users are different, because they are members of that other IP-checking site that I am a member of, and they have different IP's.
And the rest of the users (including me) all have different IP's than everyone else.
So, either 3 people created 14 accounts (total). Or the IP's in the DB are screwed up. I think it's the second one. I don't have any clue why that would be happening.
This make sure that the users IP address is correctly resolved and put in the DB. After that (already registered users IP addresses remain as they are) you can querying the db / table with the IP checker code. make sure you check to see if a users has ever logged in or not...