Do you use nginx?
It seems there is a proxy. You can try with thos snippet to get proxy address https://gist.githubusercontent.com/stavrossk/6233630/raw/37e594af266b44298e989b466ddbfb09abf50637/PHP%20Real%20client%20IP%20address%20retriever.php
Probably because you are using the dev server. With apache and nginx etc, they set the server variables for you, local dev server might ignore that and use a set of defaults (eg. 127.0.0.1 for ip since local dev server) This is just speculations tho
Обсуждают сегодня