Introduction - If you have any usage issues, please Google them yourself
Simple server code
public static void main (String [] args) throws IOException {ServerSocket ss = new ServerSocket (10009) Socket s = ss.accept () InputStream in = s.getInputStream () byte [] buf = new byte [1024] int len = in.read (buf) System.out.println (new String (buf, 0, len))