Connecting to local server is working fine. But i have to maintain one centralized DB for my team. I setup rethinkdb on aws server and have to access this from local from each system in my local project
if (err) throw err;
Check whether you have opened 28015 port on AWS Server or not?