D
D
Dmitry2016-10-19 12:16:50
Debian
Dmitry, 2016-10-19 12:16:50

How to issue in $_SERVER['REMOTE_ADDR'] the IP of the client, not the server?

PHP in the $_SERVER['REMOTE_ADDR'] variable began to give out the IP of the current server . The first time I see such behavior, where to dig?
Apache + Nginx + PHP 5.6.
All this is done under VestaCP 0.9.8.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Ульрих, 2016-10-20
@another_dream

Вероятно, клиент приходит на сервер через маршрутизатор, на котором в пробросе порта включен НАТ. Если у вас VDS обращайтесь с этим вопросам к ним

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question