It is definitely the server. I told the client to use port 8083, just to see what the error is and its still:<div><br></div><div>Exception in thread &quot;main&quot; org.jboss.netty.channel.ChannelException: Failed to bind to: <a href="http://0.0.0.0/0.0.0.0:8080">0.0.0.0/0.0.0.0:8080</a></div>
<div><br></div><div>Also, I have this on both my Ubuntu laptop and a Centos workstation when trying to run the examples in Eclipse.</div><div><br></div><div>Tristan<br><br><div class="gmail_quote">2010/6/17 Marc-André Laverdière <span dir="ltr">&lt;<a href="mailto:marcandre.laverdiere@gmail.com">marcandre.laverdiere@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Are you sure its the server socket that throws that exception, or is<br>
it the client(s)?<br>
<br>
The reason I&#39;m asking that is that I had that kind of exception with<br>
client sockets with multiple threads (that was using JNDI)... the<br>
client sockets somehow wanted to all be on the same port and it was<br>
throwing that exception. The solution was to synchronize that bit of<br>
code.<br>
<br>
It feels like a VM issue... how come it doesn&#39;t pick a random port in<br>
an atomic way?<br>
<div class="im"><br>
Marc-André LAVERDIÈRE<br>
&quot;Perseverance must finish its work so that you may be mature and<br>
complete, not lacking anything.&quot; -James 1:4<br>
<a href="http://mlaverd.theunixplace.com/blog" target="_blank">mlaverd.theunixplace.com/blog</a><br>
<br>
 /&quot;\<br>
 \ /    ASCII Ribbon Campaign<br>
  X      against HTML e-mail<br>
 / \<br>
<br>
<br>
<br>
</div>2010/6/17 &quot;이희승 (Trustin Lee)&quot; &lt;<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi Tristan,<br>
&gt;<br>
&gt; That&#39;s a problem I have never heard before..  Please let me know once<br>
&gt; you got to know how to reproduce the problem reliably in different machines.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Trustin<br>
&gt;<br>
&gt; On 06/16/2010 01:48 AM, kungfooguru wrote:<br>
&gt;&gt;<br>
&gt;&gt; I am attempting to use the examples that come with the Netty source code.<br>
&gt;&gt; I&#39;ve loaded them up in Eclipse and started with the Echo example. The server<br>
&gt;&gt; appears to start fine and the ThroughputMonitor begins to write to the<br>
&gt;&gt; console. The server does not throw any exceptions until I attempt to connect<br>
&gt;&gt; with the echo client and the exception is &#39;Exception in thread &quot;main&quot;<br>
&gt;&gt; org.jboss.netty.channel.ChannelException: Failed to bind to: ... Caused by:<br>
&gt;&gt; java.net.BindException: Address already in use&#39;. I&#39;ve tried different ports<br>
&gt;&gt; and I have checked through netstat to see that they aren&#39;t being used before<br>
&gt;&gt; trying but it still happens... Even weirder is that this isn&#39;t thrown till I<br>
&gt;&gt; run the client. I no idea at all how a client can cause that to happen,<br>
&gt;&gt; haha. If it can&#39;t bind to the port it should never know the client is<br>
&gt;&gt; sending something to it!<br>
&gt;&gt;<br>
&gt;&gt; Any help would much appreciated.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Tristan<br>
&gt;<br>
&gt; --<br>
&gt; what we call human nature in actuality is human habit<br>
&gt; <a href="http://gleamynode.net/" target="_blank">http://gleamynode.net/</a><br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&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></div></div></blockquote></div><br></div>