Connectivity to Couchbase on ecs

I am struggling to connect my couchbase server from my local java. What connection string should I use? Should it be couchbase:// where route-DNS is the as couchbase web console?
And if I want to connect to couchbase server in the same cluster same namespace, what connection String should I use?