Reputation: 1162
I'm creating a pub sub style communication using zeromq c# implementation. It all works fine on my local machine but when running the client component (publisher) against a remote address I get an "Address not available". So far as I understand it the Publisher will Bind to an endpoint and the Subscriber will Connect.
Am I misunderstanding something or should publisherSocket.Bind("tcp://someRemoteIP:5001") work?
Upvotes: 3
Views: 2530
Reputation: 6669
You bind to a local endpoint, and connect to a remote endpoint.
The local endpoint consists of a protocol ("tcp://"), an interface ("*", "localhost", "eth0" (or such) or the IP address of an interface), and a port number (":5001").
The remote endpoint consists of a protocol ("tcp://"), an IP address or domain name ("someremoteIP") and the port number.
Hope that helps.
Upvotes: 6