title: Java computer to computer connection?
body: <p>Is it possible to have two computers socket-connect to each other without any server involved in Java?  If so, how?  I've only seen examples of server-client connections where the server is permanent.</p>
  
  <p>For example:</p>
  
  <pre><code>1. 2 people, person A and person B, want to connect using this application
  2. Person A runs application, clicks "host"
  3. Application hands person A a code (IP+port?) and begins listening.
  4. Person B clicks "join" and types in code.
  5.  Person B's computer sees Person A's computer and they connect. Person A accepts connection.
  </code></pre>
  
  <p>I've never really understood this well.  Please pardon me if this is a bad question.</p>