private static void CreateListenThread(final Socket socket) throws IOException {  
         new Thread(new Runnable() {  
            public void run() {  
            try {
                String readline = new String("");
            	BufferedReader is=new BufferedReader(new InputStreamReader(socket.getInputStream()));
            	readline = is.readLine();
            	while (readline != null) {			
					System.out.println("Server is reveiving: "+ readline);
					readline = is.readLine();
            	}
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} finally {
				try {
					socket.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
            	
            }  
        }).start(); 
    }