More intelligent way of assigning ports to publishing servers. Applied this to the xmlrpc server as well.