Answer the question
In order to leave comments, you need to log in
Why does the same user IP come from different ones?
Good day!
Please tell me what's the matter.
In my application form, there is a definition of the user's ip and sending it to me by mail along with a message.
Actually code:
<input type="hidden" name="ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" />
Answer the question
In order to leave comments, you need to log in
Most likely because you have a zoo of web servers that stand one after another.
Get rid of Apache, leave only nginx.
$_SERVER["REMOTE_ADDR"] - this is the remote server IP
Here $_SERVER['HTTP_CLIENT_IP'] try))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question