L
L
Legioner9112015-10-10 13:52:26
PHP
Legioner911, 2015-10-10 13:52:26

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']; ?>" />

Tell me why the same one always comes?
Thanks in advance for the answer of knowledgeable programmers!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
OnYourLips, 2015-10-10
@Legioner911

Most likely because you have a zoo of web servers that stand one after another.
Get rid of Apache, leave only nginx.

O
Orzubek Rakhimov, 2015-10-10
@orzubek

$_SERVER["REMOTE_ADDR"] - this is the remote server IP
Here $_SERVER['HTTP_CLIENT_IP'] try))

K
Kukushkin Ivan, 2015-10-10
@deleted-webter

Well, you have the codes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question