我有一個應用程序在Android上,我連接到一個網站的一些數據。是否有可能找出我實際連接的IP地址?我做:找出IP地址?
HttpUriRequest request = new HttpGet("http://www.example.com");
DefaultHttpClient client = new DefaultHttpClient(params);
HttpResponse response = client.execute(request);
println("You connected to: " + response.getIpAddress(?));
謝謝
你有檢查:http://stackoverflow.com/questions/10322506/how-to-get-external-ip-successces –