proxy problem

view full story

http://www.daniweb.com – hello!When in the below code if iam using a local address instead of yahoo.com,it is executing well,but if iam not using a local address then it is giving a java.net.SocketException.I use a proxy connection and i have set my proxy for java .pl help import java.net.*; import java.io.*; import java.io.*; public class URLReader {     public static void main(String[] args) throws Exception {         URL yahoo = new URL("http://www.yahoo.com/");         BufferedReader in = new BufferedReader(                                 new InputStreamReader(                                 yahoo.openStream()));         String inputLine;         while ((inputLine = in.readLine()) != null)             System.out.println(inputLine);         in.close();     } } (General)