[zeromq-dev] Hole Punching

2014-02-15 Thread Ngo Doan Lap
Hi all,
I'm developing P2P application using zeromq. In the real world, some peers
are visible to others (they have public IP), some peers are invisible to
others as they behind a NAT.
The paper Peer-to-Peer Communication Across Network Address Translators (
http://www.brynosaurus.com/pub/net/p2pnat/) shows how to make connection
between peers behind NAT devices. I tried to apply this, and I can make
this happen with regular socket but I don't know how to do with zeromq.
Could you please give me some advice for this issue?
-- 
Thanks and Best Regards,
Ngo Doan Lap
Mobile: 0977.833.757
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Peer to peer connection

2014-02-15 Thread Ngo Doan Lap
Thank  for your answer,Ahmet Kakıcı

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: or bind to tcp://*:.
B will connect to tcp:173.169.213.16: or bind to tcp://*:.
You both have to forward  port to A's and B's internal ip:port pairs.

By using a centerlized server (have public IP) we can know public IP,
private IP and internal ports of A and B.
but the issues is how do we know external port  by using zeromq?


On Thu, Feb 13, 2014 at 8:16 PM, Ngo Doan Lap lapngod...@gmail.com 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




-- 
Thanks and Best Regards,
Ngo Doan Lap
Mobile: 0977.833.757
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Peer to peer connection

2014-02-13 Thread Ngo Doan Lap
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
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev