Skip to main content

Rendezvous connection help PLEASE

3 replies [Last post]
andrwe2486
Offline
Joined: 2009-05-07

I'm pretty new to jxta. I'm trying to make a very simple p2p overlay network but I'm having some trouble just trying to get 2 different computers to recognize each other on the network. I have downloaded many sender/receiver examples and can get them working on the same machine, but can't get them to work over a network. I read a post from late March saying the backbone rendezvous peers are down, so my first question is are they still down?
I started using the Jxta shell to see if I could find what the problem was. I made one computer act as rendezvous, enabled tcp incoming and outgoing, and tried both with and without HTTP. Then i used whoami to find the tcp and port for that rendezvous. I then started the shell on a 2nd machine as an edge node and I entered the tcp://[ip]:[port] of the 1st machine into the rendezvous seeding URI and hit +. I then start the 2nd shell and use peers -r for discovery and nothing happens. I have let them sit open for a few hours and they never find each other. I have no firewall on the rendezvous machine. The 2nd machine is using my neighbors unsecured wi-fi but I don't think its firewalled because I've recently got the same 2 machines to send files using javaSockets.

SOOO my main questions are:
1.) Is there anything special you are suppose to do so an edge can connect with rendezvous that I have created?
2.) Can anyone point me to an example that should work on 2 machines across the internet?
3.) If I put the tcp/port of a rendezvous node into the rendezvous seeding URI, why won't the edge connect to the rendezvous?

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
andrwe2486
Offline
Joined: 2009-05-07

NOTE: I also read something about the tcp public address for the rendezvous node so I added the IP of the rendezvous and a port for the public address. Then i added the tcp/port of the public address to the rendezvous seeding URI on the edge node on the other machine and it still can't connect. I tried connecting the public address with 2 shells on the same machine it that works, but not over the internet.

andrwe2486
Offline
Joined: 2009-05-07

UPDATE: For any one experiencing the same problem, I have solved it. The problem was that in the shell I needed to use "rdvcontrol rdv start" on the rendezvous machine. I assumed that a rendezvous would initialize by itself since my edge peer on the same machine could discover it, but I suppose that was because they are on the same LAN. I never came across that command while looking through tutorials, but it was very useful. My computer on my neigbors unsecured wi-fi connected almost immediately to my rendezvous peer on my other PC that connect to the net thru Clearwire, once I had used the rdvcontrol rdv start command it started pretty much immediatetly.
Now to try and see if I can achieve the same thing programmatically.

Anyone know if there is a similiar command to rdvcontrol rdv start that you need to use to start a rendezvous peer programmatically??

aimran50
Offline
Joined: 2006-01-26

[your group].getRendezVousService().startRendezVous();