only auto-increment when no port specified; fix type in docs