How to get attachment url from the remote host?

not sure exactly what you mean by an attachment in the couchbase server context. Were you asking the question for mobile (couchbase lite)?