Welcome! Log In Create A New Profile

Advanced

User IP same as Server IP

Posted by Shazza 
User IP same as Server IP
March 08, 2011 02:13AM
Hello,

I'm running a few scripts like vBulletin, I also run apache.

However the issue is that for some reason all scripts seem to show the IP address that a user connects to the sit with as the server IP, like a proxy.

What should I do? Someone suggested it was an nginx settings problem and to ask here.

Thanks,
Re: User IP same as Server IP
March 14, 2011 03:03AM
Can anyone help me?
Re: User IP same as Server IP
March 21, 2011 12:24AM
hello. I have a similar problem

I'm using a recognition function to IP. My server works with nginx, fast-cgi, php5, in which there are multiple virtual servers.

function ip give me the ip of the virtual server ip: 10.10.10.1 and not the client.

I think the problem is that is not properly configured fast-cgi:

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;

but really do not know

anyone can help??

greattings
Re: User IP same as Server IP
March 21, 2011 12:44AM
Using:

<?php
echo "<pre>";
print_r($_SERVER);
echo "</pre>";
?>

give me:

[REMOTE_ADDR] => 10.10.10.1
[REMOTE_PORT] => 48447
[SERVER_ADDR] => 10.10.10.50
[SERVER_PORT] => 80
[SERVER_NAME] => www.url.com

but my ip, don't 10.10.10.20, is 198.xxx



Edited 1 time(s). Last edit at 03/21/2011 12:51AM by editorweb.
Re: User IP same as Server IP
April 14, 2011 05:41AM
Is nginx proxying to another webserver maybe? Or another server proxying to nginx?



Edited 1 time(s). Last edit at 04/14/2011 05:42AM by mfeldheim.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 220
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready