JXTA P2P application over internet

不想你离开。 提交于 2019-12-04 21:31:34

From a networking perspective, you've got two machines, each of which is behind a firewall.

Unless their is some 'broker' service that is publicly accessible to both of you, you're not going to be able to connect to each other without poking some holes in your firewalls. I'll bet the simple example code you downloaded doesn't provide for that 'broker'.

From the docs I found on the java site, it sounds like the thing your missing is a 'Public Rendezvous peer'.

The java site has lots of stuff on jxta, a forum and an IRC channel.

If you want to debug this at the network level, wireshark can help.

you need to bring up a rendezvous server outside of both your NATS.

Those links describes some of the options you can use:

  1. http://osdir.com/ml/java.jxta.devel/2007-04/msg00011.html
  2. http://onjava.com/pub/a/onjava/excerpt/jxtaian_2/index2.html?page=3

if I remember correctly from my JXTA days, you can also use a public rendezvous server.

Hi (from the leader of the two latest release of JXTA for Java), you need to set-up a RDV peer with a public IP address. Then, this peer must be set as a seed in your two EDGE peers. Then, socket communication should work (it does in our tests). Cheers.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!