s=new Socket("202.195.208.71",80);
should be
s = new Socket("202.195.208.71", 4321);Of course "202..." is your ip address. But 4321 is your server's port number instead of 80. "80", the second parameter, is the maximun length of the queue.

解决方案 »

  1.   

    在哪里都可以,只要你把他当做server就可以了
      

  2.   

    我就真的不明白了,难道不用管它,把它放在IIS目录里就可以拉???
      

  3.   

    问题就在这一句:s=new ServerSocket(4321,80);
    ServerSocket(port, backlog);服务器在4321端口监听
    而客户端:s=new Socket("202.195.208.71",80);却试图连80端口,当然失败
      

  4.   

    server在本地,在远程运行都可以,但是得有JDK环境,和IP地址