Remove hard-coded ports from Ruby scripts