RE: Auto Configurator, change default port 9701 to another
"Faisal Khan" <[email protected]> Mon, 5 Sep 2005 22:03:30 +0500
| Newsgroups | gmane.comp.java.jxta.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Cyrille,
Here is what I did to change tcp address and port in Configurator
TcpTransport tcpTransport = new TcpTransport();
String ip = "ip address"
String port = "port number"
TcpTransportAddress add = new TcpTransportAddress();
URI uri = URI.create ("tcp://"+ip+":"+port);
add.setAddress (uri);
Vector transport = new Vector();
transport.add (add);
configurator.setTransports (transport);
You can also configure HTTP transport in the same way; just add it to the
transport vector.
Hope it solves your problem.
Regards
Faisal Khan
_____
From: Cyrille FOLLEAU [mailto:[email protected]]
Sent: Monday, September 05, 2005 2:24 PM
To: [email protected]
Subject: [JXTA user] Auto Configurator, change default port 9701 to another
Hello,
I use auto configurator at each application start (after each reboot)
because there is DHCP and Ip Address can change.
And user don't have to see configurator.
It works fine :
Configurator configurator= new Configurator("myName,"","login","password");
configurator.setHome(jxtaHome);
configurator.save();
But I would like to change the default TCP/IP port, I can't use 9701, I must
use 3001.
How can I change this port (and the incoming connexion which is the same)
I looked at PlatformConfig and Configurator but I didn't see what I want :(
#####################
Cyrille Folleau
Ingenieur Informatique
Tel : 01 41 38 42 37
Dassault Data Services
22 quai Gallieni
92156 Suresnes Cedex