Java に関与するサーバーなしで、2 台のコンピューターを相互にソケット接続することは可能ですか? もしそうなら、どのように?サーバーが永続的なサーバーとクライアントの接続の例しか見たことがありません。
例えば:
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.
私はこれを本当によく理解したことがありません。これが悪い質問である場合は、ご容赦ください。