Now I understood your question. I'm sorry I thought you were talking about the config file. To clarify again: the contents going **inside** the sync gateway's configuration file, tells the sync gateway where your database is. Since my couchbase server is in the same machine as my sync gateway, I could put 127.0.0.1 or localhost there (inside the sync gw's configuration file).
Now this: http://yourserever:4984/sync_gw is the link is pointing to your gateway (from your mobile device), so that your android client application knows where to find your gateway. See: Mobile app (with couchbase lite) >>>> gateway >>>> couchbase server. But this is well explained in the documentation !! The rest is just TCP networking as usual: your android device just needs to be able to reach your sync gateway (but you should not have something like this: http://localhost:4984/sync_gw in your mobile device, since the device doesn't need to sync with itself > the database is already there ;) BR, Thiago On Monday, September 29, 2014 6:23:24 PM UTC+2, Traun Leyden wrote: > > If your sync gw is running in cloud with public, use the public ip. > > If sync gw is running on wifi LAN, use LAN ip of machine running sync gw. > > On Sep 29, 2014, at 8:53 AM, Raheel Mateen <[email protected] > <javascript:>> wrote: > > i am testing on galaxy s3 (Device) > > On Wednesday, September 24, 2014 4:57:12 PM UTC+5, Raheel Mateen wrote: >> >> I follow the following to start the couch db on android >> >> http://docs.couchbase.com/couchbase-lite/cbl-android/cbl-android-1.0b2/#developing-apps >> >> but i actually not understand how to query in couch db for example if i >> make a document in a db so how should i access that document with the help >> of query. >> > -- > You received this message because you are subscribed to the Google Groups > "Couchbase Mobile" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/bcd8fd9a-2ba4-4817-998b-94edd4233bf9%40googlegroups.com > > <https://groups.google.com/d/msgid/mobile-couchbase/bcd8fd9a-2ba4-4817-998b-94edd4233bf9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/8ea69238-3d7e-47e5-841d-ab0242c1b52e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
