System.out.println("VNTCenter.main()===TCP SERVER=============="); try{ ServerSocket vntServer=newServerSocket(SERVER_PORT); System.out.println("Listening Port is "+vntServer.getLocalPort()+"..."); while(true){ Socket vntClient=vntServer.accept(); System.out.println("have a client entering , the IP is "+vntClient.getInetAddress()+"..."); System.out.println("have a client entering , the Port is "+vntClient.getPort()+"..."); new GetGpsThreadFun(vntClient).start(); } //vntClient.close();