I tried to use the following connection
URL oracle = new URL("http://www.oracle.com/");
URLConnection yc = oracle.openConnection();
yc.setConnectTimeout(100000);
BufferedReader in = new BufferedReader(new InputStreamReader(
yc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
It throws java.net.UnknownHostException
I cannot set mapping
in system32\drivers\etc\hosts
. And I cannot make any changes there . Is there any way to overcome this ? It works on my other computer, but does not on the one want to use it on
i tried using
searchUrl="http://96.7.228.140/";
And got the following error
java.net.ConnectException: Connection timed out: connect