Skip to main content

Static rendezvous for a securepeergroup

4 replies [Last post]
senapathy
Offline
Joined: 2006-10-16
Points: 0

The way I understand it, in order to join a securePeerGroup, I need to have a "known" rendezvous belonging to the securePeerGroup available visible on the Internet. I have static IP and I have configured (I think) an application to become a "Rendezvous Peer" on startup (using applicationPeerGroup.getRendezVousService().startRendezVous(); with tcp and http input and output turned on and listening on ports 9701 and 9901. I should note that I have a wireless router that forwards ports 9701 and 9901 to the computer that is running the rendezvous.

I have setup the peers to connect to a rendezvous using the command rendezvous.connectToRendezVous(); In addition the peers have a statement config.addSeedRendezvous(URI.create(

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
senapathy
Offline
Joined: 2006-10-16
Points: 0

I am not using the Shell program. Can you please tell me how to do this programmatically.

I have created a SecurePeerGroup. I have 3 computers at home that join the SecurePeeerGroup and communicate easily. But, when I run the same program on a laptop that is not in my home intranet, it just cannot see the other peers (It does show that it has joined the SecurePeerGroup successfully). As I mentioned in my previous writeup. I have a static IP and I have a rendzvous running with the static IP. The intranet computers correctly show the UUID of the rendezvous computer at home. But the laptop outside the intranet does not connect to this UUID.

This has become quite frustrating. I would appreciate some help. Are there any typical examples for this scenario?

Thanks.

tra
Offline
Joined: 2003-06-16
Points: 0

> The way I understand it, in order to join a
> securePeerGroup, I need to have a "known" rendezvous
> belonging to the securePeerGroup available visible on
> the Internet. I have static IP and I have configured
> (I think) an application to become a "Rendezvous
> Peer" on startup (using
> applicationPeerGroup.getRendezVousService().startRende
> zVous(); with tcp and http input and output turned on
> and listening on ports 9701 and 9901. I should note
> that I have a wireless router that forwards ports
> 9701 and 9901 to the computer that is running the
> rendezvous.
>
> I have setup the peers to connect to a rendezvous
> using the command rendezvous.connectToRendezVous( > peer advertisement>); In addition the peers have a
> statement config.addSeedRendezvous(URI.create( > address and port of static rendezvous"));
>
> This works just fine in the intranet and all peers
> are able to discover each other. But when a peer is
> outside the intranet it works but it works very
> spradically. It seems the connection to the
> rendezvous takes place occassionally and hence
> outside peer cannot always see the other peers.
>
> My question is, are there any instructions on how to
> setup a rendezvous so that it can be located
> immediately when a peer starts up.
No.What you are doing is the correct thing. I sounds
that there is problem with the subgroup Rendezvous
connection which is likely due to a connectivity
problem. Not sure what is wrong here outside of
an intermitent connectivity issue. Will be useful
to see a debug trace of the endpoint to see why
you are not connecting. You can use the JXTAshell
to trace the route as well via the "route" command.

Hth,

B.

>
> Thanks in advance

senapathy
Offline
Joined: 2006-10-16
Points: 0

That was a very quick reply. Thank you. This is the first time I am using the forum and I am impressed.

Can you tell me the easiest way to get the debug information? I will send you a printout.

I have a couple more questions:

1) Suppose I have a file excange software. I am downloading a large file from another peer. The other peer turns off the application. How do I detect that the other connection is terminated and end the download process in a clean manner?

2) The peer advertisements have a default lifetime. So even when a peer is disconnected, other peers think that the said peer is connected. How can peers detect that other peers are connected and know when they disconnect from the network?

By the way, I read that in JXTA version 2.3 the seSoTimeout could be changed in a JxtaSocket after connection. I have version 2.4. I recently tried it and it did not work. Is there a bug?

tra
Offline
Joined: 2003-06-16
Points: 0

> That was a very quick reply. Thank you. This is the
> first time I am using the forum and I am impressed.
>
> Can you tell me the easiest way to get the debug
> information? I will send you a printout.
You can use the "kdb" command in the JXTA shell to
turn on debugging.
>
> I have a couple more questions:
>
> 1) Suppose I have a file excange software. I am
> downloading a large file from another peer. The other
> peer turns off the application. How do I detect that
> the other connection is terminated and end the
> download process in a clean manner?
You should get an IO exception from the Socket connection.
>
> 2) The peer advertisements have a default lifetime.
> So even when a peer is disconnected, other peers
> think that the said peer is connected. How can peers
> detect that other peers are connected and know when
> they disconnect from the network?
Advertisements should not be used for presence. You may
want to check the presence on-going discussion on the
dev@jxta.org mailing list.
>
> By the way, I read that in JXTA version 2.3 the
> seSoTimeout could be changed in a JxtaSocket after
> connection. I have version 2.4. I recently tried it
> and it did not work. Is there a bug?
You should try 2.4.1. If there is still a problem
please file an issue on the platform.jxta.org project.

B.