I am connecting to url with httpurlconnection in java 1.6
The server I'm connecting to uses DNS round robin to share the load between multiple servers.
How can I get the remote IP address that I really connected to?
HttpURLConnection urlConn = (HttpURLConnection) url.openConnection(); //I then need something like this! log(SUCCESS, "made connection to: " + urlConn.getRemoteIp());
source share