} catch (Exception ex) {
logger.log(Level.WARNING, "Unable to get the peerId for " +
instanceName + ". Trying to connect without peerId.", ex);
}
try {
socket = new JxtaSocket(
netPeerGroup, // group
peerId, // peerId
pipeAdv, // remote pipe adv
timeout, // connect timeout
true // reliable or not