Re: [JXTA discuss] trying to get things configured correctly on my laptop
Vanessa Williams <[email protected]> Tue, 2 Aug 2005 15:54:56 -0400
| Newsgroups | gmane.comp.java.jxta.general |
|---|---|
| Message-ID | <[email protected]> |
Hi there, just a couple of suggestions. First, using tcp only, should be fine if both peers are on your laptop, or are on the same subnet. It sounds like you've correctly set up the server peer to be a rendezvous. What you also need to do is set the client to use that rendezvous, by adding the IP address to the list of rendezvous seeds in the client configuration UI. I'm not 100% sure, but in the past I've found it necessary to use the actual local IP (probably 10.0.1.x or whatever) rather than the loopback address (127.0.0.1). To prevent the client looking outside for a rendezvous, remove the default seeding URIs from the list. If you are trying to run both peers on the same machine, you have to run them each from different working directories, and change the ports for the tcp transport so they don't match. If using two different machines, no need to worry about that. To set the working directory, use -DJXTA_HOME=yourpath on the command line. This diagram, recently updated by Mohamed, is quite useful for learning your way around the configuration UI, IMHO. It has notes on each field with hints about when and how to use it properly for configuring either an edge or "super" peer: http://platform.jxta.org/java/confighelp.html Good luck. Any more questions, let us know. Vanessa On 29-Jul-05, at 1:38 PM, D Majumder wrote: > I have been trying to get things configured correctly on my > laptop and not seeming to be able to make much progress with it. > Finding it very difficult to do anything till i figure out a > working configuration. > > I have been poking around with the older PipeService example > where a client/Server instances can be launched to communicate > over a pipe. It is part of the dev guide kit and comes with > its own jxta.jars etc. > > I am not sure I am configuring things correctly on the config > UI that comes up. I have tried several permutation and combi- > nation of things. > > I am behind our company firewall and I do not want to go out > anyway right now. We have a local firewall on our boxes that > drops UDP traffic. I disabled that. > > I tried just using tcp transport with multicast and disabled > http for client and servers. The server comes up creates a > pipe and waits for messages. i enabled it to be the rendezvous. > > The client comes up - calls createOutputPipe() and then > waits forever trying to get a Rendezvous connection. I did > make the tcp listening ports different. > > I am expecting the client to find the server as a rendezvous > peer and then establish a pipe connection. Is my expectation > correct ? > > I then turn the http on for both of them (while keeping tcp > turned on) and enable the server to handle both inbound and > outbound connection. > > Still I do not see any activity. Or am I expecting something > wrong ? > > I turned the debug on, and am still in the process of reviewing > the logs. I can see it is trying to open sockets to what appear > to be addresses outside our company. I could be wrong though.. > I see it is trying to download the rdv seed list from jxtahosts.net > which is of course not possible in this configuration.. > > Anyway would really appreciate help on getting a working config > for local development so that various jxta apps can work. I do > not have access to multiple machines at this point. > > I will keep trying to tinker with the config in the meantime. > > thanks > d > ps: it cannot be this hard just to get a working platform :-) > > > -- > _______________________________________________ > NEW! Lycos Dating Search. The only place to search multiple dating > sites at once. > http://datingsearch.lycos.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >