Want simulate different IP address requests (I want set output IP address to my outgoing request).
When I'm doing HttpURLConnection
GET request at the destination I'm getting my local IP address which is localhost
.
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
But I want get some normal address at the destination to test GEO location system. How I can do it? Do I need to create some kind of local proxy?