Restore code to set initial ns on connect

Was removed by mistake in inef130c2aac36c32cb28f3d89f9d700764121430d