You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the pub/sub documentation sample, the publisher is documented like this:
pubSocket.Bind("tcp://localhost:12345");
But this only works when subscribers run also on localhost.
If I am not mistaken, to actually be able to serve multiple remote clients, it should be:
pubSocket.Bind("tcp://*:12345");
I want to second this. I had been trying to get PUB/SUB working on a Xamarin Forms app for a couple days and the issue with SubscriberSocket not responding was actually on a server. I had set it up with pubSocket.Bind("tcp://localhost:5555");, once I changed it to pubSocket.Bind("tcp://*:5555"); the SubscriberSocket started responding.
Environment
Expected behaviour
Actual behaviour
On the pub/sub documentation sample, the publisher is documented like this:
pubSocket.Bind("tcp://localhost:12345");
But this only works when subscribers run also on localhost.
If I am not mistaken, to actually be able to serve multiple remote clients, it should be:
pubSocket.Bind("tcp://*:12345");
(asterisk instead of localhost)
See also http://zguide.zeromq.org/cs:wuserver
Steps to reproduce the behaviour
The text was updated successfully, but these errors were encountered: