Skip to main content

The answer to how to arrange your RDV , Relay seeds and Edge in your NAT network scenary

No replies
wangzhanyu
Offline
Joined: 2011-08-10
Points: 0

Frankly speaking, i am not good at English, so was JXTA a few months ago. But, i will share my experience of my studying of JXTA about how to establish a P2P system which cross NAT utilizing RDV, Relay seeds. I think many beginners are troubling by the ambigous exprssion of official document as I was. I have just debugged my app about video transmission by JXTA, and it works well.Now, let`s make it clear.

Firstly, your should have a router, i mean physical router, which will be used in our experiment. Set the WAN as 202.118.110.1, whatever a public IP you like, and set the LAN as 192.168.1.1.

Secondly, your should have two PCs, virtual machine is ok, but your must bind another physical NetCard for your vitrual machine, to make sure this experiment will have a true result. I had test it by virtual netcard of virtual machine, it performaced well. But when i move my application to a real scenary, it didn't work any more. So, it will bring a little problem, your shoul have another physical NetCard for your virtual machine.

Then set 1st PC as 192.168.1.2, an Edge will run on the 1st PC as a peer in local; set 2cn PC as 202.118.110.2, the public IP, RDV_Relay peer will run on 2nd PC. NOTE: RDV_Relay peer is not two peers, but one peer. Your should set NetworkManager.ConfigMode.RendezVous_Relay to make your peer which runs on 202.118.110.2 as RDV_Relay peer. One peer acts not only RDV but aslo Relay! After that, set the peer as Edge which runs on 192.168.1.1.

Finally, but importantlly, SET RDV_Relay peer as the RDV seed AND Relay seed on your Edge peer. REMENBER both seeds must be set! Not single one can be omitted!

After the configuration above, a simple crossing NAT jxta system is established. your can publich or remotepublish your advertisement on the system, and you can discover or remotediscover the advertisement, transmitte your message with pipe, even data streams.

That`s it. i do not know whether i express clearly, because i wrote them after drink, even i am a Chinese speaking different lauguage from you. Wishes in the teminal year, 2012, haha. If any problem, contact me directly, wangzhanyu@hit.edu.cn