Hi,<br><br>Thank you very much for the reply.<br><br>The problem is that it&#39;s a Facebook game and we don&#39;t have total control on the auth process. The thing we&#39;re trying to prevent is users with two or more Facebook accounts. (One can also argue that it&#39;s not our problem but Facebook&#39;s.)<br>

<br>So a &quot;soft&quot; solution (like auth) does not seem to work, at least IMHO. That&#39;s why I am asking what I can do with Netty at the connection level.<br><br>Any other suggestions?<br><br><div class="gmail_quote">

On Tue, Nov 23, 2010 at 16:08, Bruno de Carvalho <span dir="ltr">&lt;<a href="mailto:kindernade@gmail.com">kindernade@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

I’d advise you to implement some sort of authentication or<br>
identification system so that only one instance of a given ID is<br>
active on the server at any given time.<br>
<br>
Something like…<br>
- Client connects;<br>
- Optionally server sends auth challenge  (or just sits and waits for<br>
the client’s ID);<br>
- Client sends ID (or authentication info);<br>
- Server checks ID against online clients;<br>
- Server either rejects connection(1) or accepts and sends the other<br>
connection for the same ID down(2).<br>
<br>
I&#39;d go for 2 as the server might take some minutes to realize a<br>
severed connection has been lost. OTOH, it&#39;s prone to ghosting<br>
(someone else knowing your ID and taking you down repeatedly) unless<br>
you do auth to go along with it.<br>
Really depends on the kind of game you&#39;re doing.<br>
<br>
<br>
Cheers,<br>
  Bruno<br>
<div><div></div><div class="h5"><br>
<br>
On Mon, Nov 22, 2010 at 6:18 PM, Ersin ER &lt;<a href="http://ersin.er" target="_blank">ersin.er</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; We&#39;re developing a game server using Netty and I would like to get your<br>
&gt; advise on the following problem:<br>
&gt;<br>
&gt; How can I prevent multiple simultaneous connections from the same client<br>
&gt; using Netty at the server side?<br>
&gt;<br>
&gt; Any suggestions or references are welcome!<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; --<br>
&gt; Ersin Er<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; netty-users mailing list<br>
&gt; <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
&gt;<br>
<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a></blockquote></div><br><br clear="all"><br>-- <br>Ersin Er<br>