[zeromq-dev] Zyre Bind to public IP address
Matteo
matteo.brichese at gmail.com
Tue Apr 21 17:26:26 CEST 2020
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 <brett.viren at gmail.com> wrote:
> 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.
>
>
--
Matteo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20200421/09b84248/attachment.htm>
More information about the zeromq-dev
mailing list