Hi Brett, yeah, I checked the code yesterday and realized that I cannot bind to a remote address. I'll have to change my design a bit but nothing major.
Thank you! On Tue, Apr 21, 2020 at 5:48 AM Brett Viren <[email protected]> wrote: > Hi Matteo, > > Matteo <[email protected]> writes: > > > One doubt remains: I am binding a node to an address that is not of > > the machine where the node is located. > > From zmq_bind(3): > > The zmq_bind() function binds the socket to a local endpoint and then > accepts incoming connections on that endpoint. > > So, a "bind" requires an address that is always "local". For "tcp://" > addresses this means the host part must resolve to (or be) an IP address > that is provided by the system running the software doing the "bind". > > It is "connect" that may be given a remote address if the transport > allows for that (as does "tcp://"). > > In your case, it sounds like having the endpoint on your cloud host do > the "bind" and the one running from your home network "connect" to it > might be good. > > -Brett. > > -- Matteo
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
