Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pub/Sub Documentation error #747

Closed
dev-nextprogress opened this issue Aug 1, 2018 · 2 comments
Closed

Pub/Sub Documentation error #747

dev-nextprogress opened this issue Aug 1, 2018 · 2 comments

Comments

@dev-nextprogress
Copy link

Environment

NetMQ Version:    N/A
Operating System: N/A
.NET Version:     N/A

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

@fscopel
Copy link

fscopel commented Oct 3, 2018

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.

@drewnoakes
Copy link
Member

@dev-nextprogress, @fscopel please review #758 and verify whether it addresses the problem you encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants