I cannot ping to the remote server.
This is the code I've written for example....
import java.net.*;
import java.io.*;
class WebSiteReader1
{
public static void main(String args[])
{
try
{
InetAddress ip=InetAddress.getByName("www.orkut.com");
//Socket S=new Socket(ip,8080);
System.out.println(ip);
URL url=new URL("http://www.yahoo.com");
URLConnection urlcon=url.openConnection();
urlcon.connect();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
The Stack trace is too long.
> I cannot ping to the remote server.
If you can't ping the server you can't do anything else with it either. Talk to your netadmin.
> The Stack trace is too long.
Too long compared to what?
Well my time is too short to waste on nitwits who won't provide information when requested. I asked you five questions and you've answered one of them.