帮忙看一下代码会什么会有异常?import java.net.*;
import java.io.*;
class SSClient
{
 public static void main(String []args)
{String host="localhost";
if(args.length==1) host=args[0];
BufferedReader br=null;  
PrintWriter pw=null;
Socket s=null;try
{
s=new Socket(host,1000);
pw=new PrintWriter(s.getOutputStream(),true);
br=new BufferedReader(new InputStreamReader(s.getInputStream()));pw.println("DATE");
System.out.println(br.readLine());
}
catch(IOException e)
{
System.out.println(e);
}  //end catch
finally
{
try
{
if(br!=null)
{
  br.close();
}
if(pw!=null)
{
pw.close();
}
if(s!=null)
{
s.close();
}
}
catch(IOException e)
{
}
} //end fianlly
}  //end main
}  //end  SSClient
错误:
C:\workplace>java  SSClient www.baidu.com
java.net.ConnectException: Connection timed out: connect会什么会出现这种错误?