preferredServerPort should be defaultPreferredServerPort
removed deprecated new function