Possible Duplicate:
Get Client IP using just Javascript?
I know PhP can know your IP from <?php echo $_SERVER['REMOTE_ADDR']; ?>
How can javascript do so?
Or is it true that because javascript is client side it doesn’t know the IP of the computer?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the file containing your JS code is parsed by PHP, you should be able to inject the IP-address into the JS code by PHP.