p2pjxta

JXTA P2P application over internet


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

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


Solution

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