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'm encountering the classical:<br><br> <class 'twisted.internet.error.ConnectBindError'>: Couldn't bind: 98: Address already in use<br>
<br>My code is:<br><br>######################################<br><br> factory = Factory()<br> # an almost empy subclass of Protocol<br> factory.protocol = TCPServer<br> <br> reactor.listenTCP(12345, factory)<br>
<br> # ClientFactory subclass which simply instantiate a TCPClient Protocol<br> client_factory = TCPClientFactory()<br> <br> # last tuple is the bindAdress parameter<br> reactor.connectTCP(target_addr, 12345, client_factory, 30, (source_addr, 12345))<br>
<br>#######################################<br><br>I've tried to look on the Internet and in the source code but I've not found a proper solution.<br><br>Thanks in advance for any suggestion.<br>Alessio Pace.<br><br>