All my visitor IP are the same
Posted by: tsukishiro (183.90.103.---)
Date: March 30, 2013 06:16AM

Hello, I have been experiencing problems on my website hosted on wamp apache 2.2.22
All my visitor and member IP reflects as 192.168.0.1
My gaming server however shows 127.0.0.1 for all of them.
What can I do to make my website read their real ip?

Please help.
The website in question is: tsu.myftp.org

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: stevenmartin99 (Moderator)
Date: March 30, 2013 08:22AM

These are ur IP's !!!!

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: tsukishiro (183.90.103.---)
Date: April 02, 2013 02:05PM

That's beside the point. I know these are my IP.
I am currently trying to install mod_rpaf to resolve this issue.
Can anyone help me out?


Thanks in advance!

Best Regards,
tsuki

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: RiggsFolly (---.as13285.net)
Date: April 02, 2013 02:13PM

Are you running a reverse proxy or a web farm??

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: tsukishiro (183.90.103.---)
Date: April 02, 2013 02:20PM

I am not running a webfarm.
Just installed mod_rpaf, doesnt seem to work either.

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: stevenmartin99 (Moderator)
Date: April 02, 2013 02:21PM

what do you mean its beside the point??

"All my visitor and member IP reflects as 192.168.0.1 "


the problem is you wrote

"What can I do to make my website read their real ip? "

you could use php to read their ip address as normal.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 04/02/2013 02:21PM by stevenmartin99.

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: tsukishiro (183.90.103.---)
Date: April 02, 2013 02:30PM

I might have misunderstood what you meant.

My bad. How can I make php read their IP properly?

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: stevenmartin99 (Moderator)
Date: April 02, 2013 02:43PM

<?php

$ip_address = $_SERVER["REMOTE_ADDR"];

echo "Your IP is $ip_address!";

?>

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: RiggsFolly (---.as13285.net)
Date: April 02, 2013 04:09PM

192.168.0.1 is normally the ip of your router
127.0.0.1 is the ip address of localhost

Have you allowed the world to see your site or are you just using this internally 'at home' so to speak?

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: tsukishiro (183.90.103.---)
Date: April 03, 2013 10:43AM

Hi Riggs,

The website is up and available for the world to see.
That's exactly why I am feeling troubled.

Once again, the site in question is: tsu.myftp.org

This wesbite is used for gaming purpose. If the IP address if not read correctly, I cannnot ban members whom abuse, and they won't be able to vote for my gaming server either.
Kindly advise.

Best,
tsuki

Options: ReplyQuote
Re: All my visitor IP are the same
Posted by: stevenmartin99 (Moderator)
Date: April 03, 2013 10:46AM

U can never guarantee a valid ip, but in saying that I doubt they are faking it with your local IP address.

Your reading the wrong ip addresses , test the code above that it supplies a valid ip. U can test it from inside ur network because u will obviously get ur own ip.


U need to use a combination of cookies and ip to try prevent abuse

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.