Remove socket connection : <p>I have a problem with removing socket connection. I'm using :</p>

<pre><code>socket.close();
</code></pre>

<p>but when I try to open another socket connection from the same process, I get this error :</p>

<pre><code>java.net.ConnectException: Connection refused: connect
</code></pre>

<p>Where am I going wrong, thanks by advance.</p>
