As indicated, you would need to set your proxy parameters/credentials right before you establish a connection.
Set proxy username
and password
only in case your proxy is authenticated.
public static String readRSS(String urlAddress) {
System.setProperty("http.proxyHost", YOUR_PROXY_HOST);
System.setProperty("http.proxyPort", YOUR_PROXY_PORT);
//Below 2 for authenticated proxies only
System.setProperty("http.proxyUser", YOUR_USERNAME);
System.setProperty("http.proxyPassword", YOUR_PASSWORD);
try {
...
I tested your method behind a proxy and it works perfectly, after setting the parameters i.e.