$_SERVER['REMOTE_ADDR'] return 127.0.0.1 Instead of the real ip of the site visitor
Posted by: adobe (---.encryptedconnection.info)
Date: February 16, 2022 04:09PM

1) Windows server 2019 x64
2) wampserver 3.2.6. x64
3) apach 2.4.51
4) php 7.4.26
5) mysql 8.0.27
6) green
7)
#
127.0.0.1 localhost
::1 localhost

127.0.0.1 site.pw
::1 site.pw

8) yes
9) yes
11) windows firewall (all web-port open)
12) C:\wamp64

Installed on vampserver on windows server 2019 TOR forum. When accessing it from the Tor ip, 127.0.0.1 is displayed attached what the variables give out, how to fix it so that I can receive the real IP? Anti-spam protection on the forum does not work because of this.

HTTP_X_FORWARDED_FOR
REMOTE_ADDR127.0.0.1
HTTP_CLIENT_IP



Edited 1 time(s). Last edit at 02/16/2022 04:10PM by adobe.

Options: ReplyQuote
Re: $_SERVER['REMOTE_ADDR'] return 127.0.0.1 Instead of the real ip of the site visitor
Posted by: Otomatic (Moderator)
Date: February 16, 2022 04:37PM

Hi,

RTFM $_SERVER

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: $_SERVER['REMOTE_ADDR'] return 127.0.0.1 Instead of the real ip of the site visitor
Posted by: adobe (---.encryptedconnection.info)
Date: February 16, 2022 05:41PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> RTFM
> [url=https://www.php.net/manual/en/reserved.variab
> les.server.php]$_SERVER[/url]
So what?
Do I also see 127.0.0.1 on the xenforo 2 forum? How to set up to correctly issue the IP?



Edited 1 time(s). Last edit at 02/16/2022 05:43PM by adobe.

Options: ReplyQuote
Re: $_SERVER['REMOTE_ADDR'] return 127.0.0.1 Instead of the real ip of the site visitor
Posted by: Otomatic (Moderator)
Date: February 16, 2022 06:58PM

Hi,

This is your problem, read the documentation.

In no way it's a problem of Wampserver.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.