Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

IP checker shows strange results...

Asked Modified Viewed 3,150 times
U
Unknown98
U
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
asked
Member

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:

Username IP
admin 38.99.70.199
Eumirbago 38.99.70.199
Sora05 68.88.5.179
Calletin 68.88.5.179
Bigjoe 38.99.70.199
CausticDragoon 68.88.5.179
adamo 38.99.70.199
johnboy25 67.234.81.32
dardan 68.88.5.179
Phatboy 196.41.124.8
Jared9473 38.99.70.199
Dink87522 38.99.70.199
jefffan24 38.99.70.199
Rob 38.99.70.199
kelbel39 38.99.70.199
lonewolf86 24.99.67.57
Rodneyrw2 38.99.70.199
elmerfudd 38.99.70.199
korbert 38.99.70.199
crazybeagle 38.99.70.199
coolboy007 38.99.70.199
wildduke 38.99.70.199
Epikhigh 38.99.70.199
Nikolaus 38.99.70.199
Cafoni 76.24.73.59
whitie1234 38.99.70.199

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?
0 replies

11 posts

M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

U
Unknown98
U
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
answered
Member

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?
0 replies
X
Xessive
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Quote

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.)
Edited by Xessive on 29-07-2008 19:11,
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

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
0 replies
U
Unknown98
U
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
answered
Member

Thanks. So, I edited that code in the maincore.php, and it still shows the same results. Anything else?
0 replies
U
Unknown98
U
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
answered
Member

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.
Edited by Unknown98 on 08-08-2008 19:23,
0 replies
X
Xessive
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Could be that you host is using some load-balancer / proxy. Thus users are registered at the IP of that device.

Find the following line in maincore.php:
define("USER_IP", $_SERVER['REMOTE_ADDR']);


and replace with:
define("USER_IP", isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']);


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...

(Thanks to Matonor for the code examples)
0 replies
U
Unknown98
U
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
answered
Member

Ok, I did it again. Same results. Does it take awhile to notice the change?
0 replies
X
Xessive
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

It will resolve the IP address of a user after they have logged in (again). At least it should do.
0 replies
U
Unknown98
U
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
answered
Member

Ok. I will look into it.
0 replies
U
Unknown98
U
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
answered
Member

Yep, that worked. I just didn't know they had to log in again. Thanks.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 11 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet