互联网上的 JXTA P2P 应用程序

发布于 2024-08-03 12:39:19 字数 2502 浏览 7 评论 0原文

我正在学习 JXTA 并且想掌握它。我从jxta网站下载了教程程序 我只在一台电脑上运行了所有这些程序并且运行得很好。 但我希望它能够通过互联网工作。 我的朋友也有互联网连接。我们尝试在他的机器上运行套接字客户端,而套接字服务器程序在我的机器上运行。我还尝试使 myjxta(一个 jxta p2p 应用程序)通过互联网工作,但没有成功。 我们都有 ADSL 连接,并且有 D-Link ADSL 路由器 GLB-802C。 在设置路由器时,我输入了用户名和密码。浏览器没有任何代理配置。 那么是否需要为 JXTA 进行代理配置,如果是,我应该怎么做。

以太网的 ipconfig 如下,

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix  . :
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC
Physical Address. . . . . . . . . : 00-14-78-06-2A-A8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5584:3f17:f0c5:d774%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.3(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Thursday, September 03, 2009 7:50:51 AM
Lease Expires . . . . . . . . . . : Saturday, October 03, 2009 7:50:51 AM
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 234886264
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-11-FB-93-03-00-14-78-06-2A-A8
DNS Servers . . . . . . . . . . . : 208.67.222.222
                                    208.67.220.220
NetBIOS over Tcpip. . . . . . . . : Enabled

我从一周以来一直在尝试这样做,我需要帮助来理解这一点.... 我想要一些指导方针,我应该如何进行此操作,因为互联网上没有太多关于 JXTA 的信息。谢谢您的帮助..

我正在稍微改变一个问题,我想运行MyJXTA(从JXTA网站下载的现成的JXTA应用程序)通过互联网工作。我确实在评论中提供了配置屏幕截图链接,以及运行 MyJXTA 应用程序时的屏幕截图。感谢您的帮助...

//////////////////////////////////////////// /////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////// /////////////////////////////

我刚刚发现有一些 tcp 服务器套接字和我的问题 isp。我确实用python确认了 SOCK_STREAM 这里是线程 - 互联网上的 Python SOCK_STREAM 。 只有数据报可以在我的电脑上运行。我愿意 不知道jxta是否使用tcp服务器 插座与否。还有其他的吗 问题?

wireshark 的屏幕截图 - http://img188.imageshack.us/img188/3816/59237360.jpg

///////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////// /////////////////

I am learning JXTA and want to master it. I downloaded the tutorial programs from jxta website
I have run all those programs from only one PC and worked perfectly fine.
But I want it to work over internet.
My friend also has an internet connection. We tried to run socket client on his machine while socket server program was running on my machine. I also tried to make myjxta (a jxta p2p application) to work over internet but had no success.
We both have ADSL connection and has D-Link ADSL router GLB-802C.
While setting up the router I did entered username and password. There not any proxy configuration for browser.
So is it required to do the proxy configuration for JXTA if yes how should I do it..

The ipconfig for ethernet is as follows

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix  . :
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC
Physical Address. . . . . . . . . : 00-14-78-06-2A-A8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5584:3f17:f0c5:d774%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.3(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Thursday, September 03, 2009 7:50:51 AM
Lease Expires . . . . . . . . . . : Saturday, October 03, 2009 7:50:51 AM
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 234886264
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-11-FB-93-03-00-14-78-06-2A-A8
DNS Servers . . . . . . . . . . . : 208.67.222.222
                                    208.67.220.220
NetBIOS over Tcpip. . . . . . . . : Enabled

I am trying to do it since week, I need help to understand this....
I want some guidelines how should I proceed with this because there is not much information available for JXTA on internet. Thank you for any help ..

I am changing a question a little bit I want to run MyJXTA (a readymade JXTA application downloaded from JXTA website) to work over internet. I did provided configuration screenshot links in the comment, as well as screenshot of MyJXTA application when I run it. thanks for any help...

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

I just figured out that there is some
problem with tcp server socket and my
isp. I did confirmed it with python
SOCK_STREAM here is the thread -
Python SOCK_STREAM over internet .
Only Datagram works on my pc . I do
not know whether jxta used tcp server
socket or not. Can there be any other
problem ?

Screenshot of wireshark -
http://img188.imageshack.us/img188/3816/59237360.jpg

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

流年已逝 2024-08-10 12:39:19

从网络角度来看,您有两台机器,每台机器都位于防火墙后面。

除非他们是你们双方都可以公开访问的某种“代理”服务,否则你们将无法在不在防火墙上戳出一些漏洞的情况下相互连接。
我敢打赌您下载的简单示例代码不提供该“经纪人”。

从我在 java 站点上找到的文档来看,听起来您缺少的是“公共 Rendezvous 对等点”。

java 站点jxta,一个论坛和一个 IRC 频道。

如果您想在网络级别进行调试,wireshark 可以提供帮助。

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.

友欢 2024-08-10 12:39:19

您需要在两个 NATS 之外启动一个集合服务器。

这些链接描述了您可以使用的一些选项:

  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

如果我在 JXTA 时代没记错的话,您还可以使用公共集合服务器。

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.

眼波传意 2024-08-10 12:39:19

您好(来自 JXTA for Java 两个最新版本的负责人),您需要设置一个具有公共 IP 地址的 RDV 对等点。然后,必须将该对等点设置为两个 EDGE 对等点中的种子。然后,套接字通信应该可以工作(在我们的测试中确实如此)。干杯。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文