There are several ways to go about doing this, but one that has worked is to use a ServerSocket on one and to connect to the ServerSocket via Sockets on the other. There are several good tutorials...