PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
What is a "correct ip"? Do you want to get a local intranet ip address? Anyway, the server can only report what the client tells it. I think you're down a dead end.
We've had many discussions on how to pull the IP of a requesting user, however none are 100% reliable. Why do you need the IP? IPs are not relatable to users in any shape or form.