Get client id using multithreaded java server
<p>I'm currently trying to create a multithreaded java socket server.
I can send "private" messages using "ID;MESSAGE; in my clients. </p>

<p>The messages arrive at the right client but the problem is that the server always displays that all messages come from the same client (client id 0), but they don't.</p>

<p>Here's my Server <a href="http://pastebin.com/Dzh5Ynvj" rel="nofollow">http://pastebin.com/Dzh5Ynvj</a></p>

<p>Server output</p>

<pre><code>21:02:55 [DSS-Server] [Client#0] connected.
21:02:58 [DSS-Server] [Client#1] connected.
21:13:11 [DSS-Server] [Client#0] &gt; 0;This is send from client 0
21:13:18 [DSS-Server] [Client#0] &gt; 1;This also
21:13:30 [DSS-Server] [Client#0] &gt; 0;But this comes from client 1
</code></pre>