Each peer will use other's public ip address to connect but you have to forward ports to internal ip adresses. A will connect to "tcp://87.96.124.16:xxxx" or bind to "tcp://*:xxxx". B will connect to "tcp:173.169.213.16:xxxx" or bind to "tcp://*:xxxx". You both have to forward xxxx port to A's and B's internal ip:port pairs.
On Thu, Feb 13, 2014 at 3:16 PM, Ngo Doan Lap <[email protected]> wrote: > Hi All, > I'm going to develop peer to peer chat application using Zeromq but I > can't find a away to for connecting two peers on different network. > For example: > A CoffeShop (public IP is 173.169.213.16) has peer A (private IP is > 192.168.1.15) > A university campaign (public IP is 87.96.124.16) has peer B (private IP > is 10.14.22.19) > Both A and B can access to internet freely. > How do I make connection between A and B using zeromq? > -- > Thanks and Best Regards, > Ngo Doan Lap > Mobile: 0977.833.757 > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
