Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
using $_SERVER['HTTP_CLIENT_IP'] is not providing the client's ip address.
$_SERVER['HTTP_CLIENT_IP']
What could be the reason?
Try $_SERVER['REMOTE_ADDR'] or $_SERVER['REMOTE_HOST']. That will give you your clients remote IP.
Add a comment
you can use:
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.