correctly send port; callback when connected