Advertisement
Guest User

Untitled

a guest
May 28th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.17 KB | None | 0 0
  1. ServerSocket ssock = new ServerSocket();
  2. ssock.setReuseAddress(true);
  3. ssock.bind(new InetSocketAddress( "127.0.0.1", 1234 );
  4. Socket sock = ssock.accept();
  5.  
  6.  
  7. sock.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement