How can we get the IP address of the client?

This question might show you how playful and creative the candidate is because there are many options.

$_SERVER["REMOTE_ADDR"];

is the easiest solution, but the candidate can write x line scripts for this question.

Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Yes0
No0
Harinder Singh

Harinder Singh

My name is Harinder Singh and I specialize in Software industry. I consider myself as a life learner. I love learning new concepts, embracing new ideas and reading and searching for innovation.