How to simulate different location while testing localhost ?
I am using the java play framework, where I get the users IP Address when he posts a form. While testing, I save the address and all I get is the localhost 0:0:0:0:0:0:0:1%0
. I want to be able to test this in a variety of locations, and use different IP addresses to test this and get the user's location from the IP address.
What would be the best way to go about this ?