Hi,<br><br>I would lilke tro listen on a given TCP port and initiate multiple TCP client connections from the same port, but I&#39;m encountering the classical:<br><br>&nbsp; &lt;class &#39;twisted.internet.error.ConnectBindError&#39;&gt;: Couldn&#39;t bind: 98: Address already in use<br>
<br>My code is:<br><br>######################################<br><br>&nbsp;&nbsp;&nbsp; factory = Factory()<br>&nbsp;&nbsp;&nbsp; # an almost empy subclass of Protocol<br>&nbsp;&nbsp;&nbsp; factory.protocol = TCPServer<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; reactor.listenTCP(12345, factory)<br>
&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; # ClientFactory subclass which simply instantiate a TCPClient Protocol<br>&nbsp;&nbsp;&nbsp; client_factory = TCPClientFactory()<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; # last tuple is the bindAdress parameter<br>&nbsp;&nbsp;&nbsp; reactor.connectTCP(target_addr, 12345, client_factory, 30, (source_addr, 12345))<br>
<br>#######################################<br><br>I&#39;ve tried to look on the Internet and in the source code but I&#39;ve not found a proper solution.<br><br>Thanks in advance for any suggestion.<br>Alessio Pace.<br><br>