<html><body bgcolor="#FFFFFF"><div>As a Facebook application you should have access to the user ID or something else that uniquely identifies an account.</div><div><br></div><div>Use that unique identifier because a<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">s Tsuna said, theres nothing reasonable you can do on the network layer.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">(especially if you're doing a Facebook game... People only play those at work and work usually means NAT or corporate firewall :p)</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Cheers,</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">&nbsp;&nbsp;Bruno</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></div><div><br>On Nov 23, 2010, at 5:59 PM, Ersin ER &lt;<a href="mailto:ersin.er@gmail.com">ersin.er@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Well that's unacceptable as you said as it's also block people behind NAT gateways.<br><br>Perhaps we may do something with incorporating client IP address (the original one behind the NAT as well as the public NAT one) within the packages. But I am not sure yet..<br>

<br><div class="gmail_quote">On Tue, Nov 23, 2010 at 19:34, tsuna <span dir="ltr">&lt;<a href="mailto:tsunanet@gmail.com"><a href="mailto:tsunanet@gmail.com">tsunanet@gmail.com</a></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;">

<div class="im">On Tue, Nov 23, 2010 at 6:45 AM, Ersin ER &lt;<a href="http://ersin.er" target="_blank">ersin.er</a>@<a href="http://gmail.com" target="_blank"><a href="http://gmail.com">gmail.com</a></a>&gt; wrote:<br>
&gt; That's why I am asking what I can do with Netty at the connection level.<br>
<br>
</div>But then the only thing you can do is to allow each IP address to<br>
connect only once to your server. &nbsp;This will prevent all the users<br>
behind firewalls or modem routers from playing if there's already<br>
another user playing from the same network, which is going to be a<br>
very frequent problem for your users.<br>
<br>
I don't recommend doing that, but if you really do, it's pretty<br>
simple, you can create a ConcurrentHashSet and whenever a client<br>
connects, you check if its IP is already in the set. &nbsp;If it is, you<br>
deny the connection, otherwise you store the IP in the set and let it<br>
proceed.<br>
<font color="#888888"><br>
--<br>
Benoit "tsuna" Sigoure<br>
Software Engineer @ <a href="http://www.StumbleUpon.com" target="_blank"><a href="http://www.StumbleUpon.com">www.StumbleUpon.com</a></a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org"><a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a></a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank"><a href="https://lists.jboss.org/mailman/listinfo/netty-users">https://lists.jboss.org/mailman/listinfo/netty-users</a></a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ersin Er<br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>netty-users mailing list</span><br><span><a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/netty-users">https://lists.jboss.org/mailman/listinfo/netty-users</a></span></div></blockquote></body></html>