int numTries = 20; // start looking for a free port, begin with default port -dispatch/callback/plugin/xmlrpc/port <port>
for (int ii=0; ii<numTries; ii++) {
try {
// webServer = new WebServer(xmlRpcUrlCallback.getPort(), xmlRpcUrlCallback.getInetAddress());
SocketUrl socketUrl = new SocketUrl(glob, xmlRpcUrlCallback.getHostname(), xmlRpcUrlCallback.getPort());
webServer = new XblWebServer(xmlRpcUrlCallback, socketUrl, callbackAddress);
break;
}
/*
catch(java.net.BindException e) {
log.warning("Port " + this.xmlRpcUrlCallback.getPort() + " for XMLRPC callback server is in use already, trying with port " + (this.xmlRpcUrlCallback.getPort()+1) + ": " + e.toString());