[zeromq-dev] connect doesnt' throw an error but binding to an address does

william david wdavid.wdavid at yahoo.com
Wed Jun 1 02:31:14 CEST 2016


Hello, I'm tunneling into a machine, and binding the remote port 3000 to the local port 3000, but unfortunately I'm receiving an error when I start the server:
```zmq.error.ZMQError: Address already in use
```
The code (python):import zmqcontext = zmq.Context()socket = context.socket(zmq.REP)socket.bind("tcp://0.0.0.0:4000")# doesn't make it past this 
If I change it to "socket.connect('tcp://0.0.0.0:4000')", it doesn't throw this error. Why is this?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160601/7e48c113/attachment.htm>


More information about the zeromq-dev mailing list