[zeromq-dev] Zyre Bind to public IP address

Brett Viren brett.viren at gmail.com
Tue Apr 21 14:48:02 CEST 2020


Hi Matteo,

Matteo <matteo.brichese at gmail.com> 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20200421/b120e943/attachment.sig>


More information about the zeromq-dev mailing list