Skip to main content

How to change rdv host in the program

1 reply [Last post]
ronpaul
Offline
Joined: 2007-07-12
Points: 0

Hi,

Do you know how to change the reference of rendevous, relay servers ? The default reference inside jxta2.5 is http://rdv.jxtahosts.net . I counted there are more than 20 references hard coded inside the code base. I couldn't figure out a good way how to replace it with my own rdv server.

Why they don't just move them to a properties file and get it from there ? In that way, it's much more easy for me to change the reference to my own rdv server.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jonnydscott
Offline
Joined: 2004-09-06
Points: 0

Hi

You can specify your rdv by using this in your edge peer:

configurator.addSeedRendezvous(URI)
configurator.setUseOnlyRendezvousSeeds(true)

However, if you're connecting via firewall/NAT you should specify a relay server
instead, and use the above code in the relay to connect to the rendezvous.

So your edge would be instead:

configurator.addSeedRelay(URI)
configurator.setUseOnlyRelaySeeds(true)

Then your edge will connect to the rendezvous via your relay.

That worked with me anyway.
Hth,
Jon