public static void main (String[] args)throws IOException
{
ServerSocket ss = new ServerSocket(11475);
Socket s = ss.accept();
PrintWriter pw = new PrintWriter(s.getOutputStream(),true);
pw.println("<font size=7 color=red>注册成功</font>");
ss.close();
s.close();
}
用http://127.0.0.1:11478/为什么不行 ,提示网络连接错误,
|
|