PDA

View Full Version : [all variants] How to get the CouchDB port number from JavaScript?



mindless1973
July 23rd, 2010, 06:38 PM
Hi,

I would like to access the built in CouchDB from either Java or JavaScript. However, as the port number is chosen randomly at every system restart, I would need a way to get the port number automatically using JavaScript (or Java) so that my application can connect.

Can anyone tell me how to get that port number, or how to set the port number to a fixed value (why is it floating anyway...)?

Thanks,

bye
me.

j7%<RmUg
July 23rd, 2010, 07:30 PM
No, idea.

Python is WAY easier and better to use than java anyhow.

mindless1973
July 24th, 2010, 10:54 AM
No, idea.

Python is WAY easier and better to use than java anyhow.

Ok, so - how would you do it in Python then?

I mean, I am flexible :-)

bye
me.