while(true)
{
  try
  {
     server=new ServerSocket(5541);
   }
   catch(IOException e1)
   {
     System.out.println("is monitoring"+e1);
   }
...........
改为;
try
{
   server=new ServerSocket(5541);
}
catch(IOException e1)
{
   System.out.println("is monitoring"+e1);
}
while(true)
{
   try
   {
         you=server.accept();
    }catch(IOException e1)
   {
       System.out.println("is waiting"+e1);
    }
................