互联网上的JXTA P2P应用程序 [英] JXTA P2P application over internet

查看:101
本文介绍了互联网上的JXTA P2P应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习JXTA,并希望掌握它.我从jxta网站下载了教程程序 我仅在一台PC上运行了所有这些程序,并且运行良好. 但是我希望它可以通过互联网工作. 我的朋友也有互联网连接.当我的计算机上运行套接字服务器程序时,我们尝试在他的计算机上运行套接字客户端.我还试图使myjxta(一个jxta p2p应用程序)可以通过Internet工作,但是没有成功. 我们都有ADSL连接,并有D-Link ADSL路由器GLB-802C. 设置路由器时,我确实输入了用户名和密码.浏览器没有任何代理配置. 那么是否需要为JXTA做代理配置?

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..

用于以太网的ipconfig如下

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

自一周以来,我一直在尝试这样做,我需要帮助才能了解这一点. 我想要一些指导方针,该如何进行此操作,因为Internet上没有太多可用于JXTA的信息.谢谢您的帮助..

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 ..

我正在更改一个问题,我想运行MyJXTA(从JXTA网站下载的现成的JXTA应用程序)以通过Internet工作.我确实在注释中提供了配置屏幕快照链接,以及运行MyJXTA应用程序时的屏幕快照.谢谢您的帮助...

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...

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

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

我刚发现有一些 TCP服务器套接字和我的问题 isp.我确实用python确认了 SOCK_STREAM这是线程- 通过互联网的Python SOCK_STREAM . 仅Datagram可在我的PC上使用.我愿意 不知道jxta是否使用过tcp服务器 插座与否.还有其他吗 有问题吗?

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 ?

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

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

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

推荐答案

从网络角度看,您有两台计算机,每台计算机都位于防火墙后面.

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'.

从我在java网站上找到的文档来看,听起来好像您缺少的是一个公共集合点".

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

java网站

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

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

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

这篇关于互联网上的JXTA P2P应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆