I’m hosting a server at home with apache and i’m trying to get my user’s ip adress using php but what I get is my router’s ip adress. It is possible to get their ip adress by like bypassing my router?
Thanks!
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.
Use
$_SERVER['REMOTE_ADDR']to get the user’s IP address.If you’re testing this from your house’s network, you will get your router’s IP address, but it doesn’t mean its not working for someone outside your network.
You can use a service like Snapshots or Browser Shots for testing.