Skip to main content

SOS~~ The problem about the initiating of jxta

5 replies [Last post]
kobewang1234
Offline
Joined: 2010-03-18
Points: 0

I use jxta 2.5, I can set up the pipes in one computer while in different file paths, But, in two different computers in the same LAN, they could not find the other peers in the same group, even if i configure the RDV in peerA, and with PEER B connecting to it.
In eclipse, the console shows that
"2010-4-26 22:14:54 net.jxta.impl.endpoint.tcp.TcpMessenger
information: Creating new TCP Connection to : tcp://192.168.0.4:9701 / 192.168.0.4:9701
"

I want to get your help~~
My email is kobewang1234@hotmail.com
Thank you very much!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ariel_ro
Offline
Joined: 2009-12-28
Points: 0

From the console output it seems that it initiates the connection to the other peer.

How did you implement your discovery service? Maybe this is the problem.

kobewang1234
Offline
Joined: 2010-03-18
Points: 0

Nope, I just configure the RDV in the initial configuration dialog, and the other peer connects to it in the dialog too.

Is there anything wrong in my method??

ariel_ro
Offline
Joined: 2009-12-28
Points: 0

If the console output is from peer B (the one that connects to the RDV) than it seems like things are working. Other than that I would say watch it for firewalls.

kobewang1234
Offline
Joined: 2010-03-18
Points: 0

Hi friend,
I have already close the firewall and configure the ip address all by myself instead of the DHCP.
And I could get a successful TCP connection between the two computers, however I just could not make my program of jxta work. :(

jxtathailand
Offline
Joined: 2010-05-06
Points: 0

Hi,

I have the same problem. I run DiscoveryServer.java + DiscoveryClient.java from jxta guide (JXSE Programmers Guide Tutorials) in the same machine. There is no any problem, Server and client got responses.

When I try to run Server at PC1, Client at PC2. They cannot hear each other. No any reponse. I try to change PipeService from Unicast to PipeService.PropagateType and enable these:

NetworkConfigurator mnc = manager.getConfigurator();
mnc.setTcpEnabled(true);
mnc.setTcpIncoming(true);
mnc.setTcpOutgoing(true);
mnc.setUseMulticast(true);

both client and server. It still have no any response.

I don't have any firewall and both PCs can ping each other.

Thanks,