Hey Dinesh, If you're behind a corporate firewall then proxy will not help you as you will still be unable to establish an http connection with the proxy from behind the firewall (which is blocking your outside access). Also, since you're trying to connect to a database, a proxy will not help you because it's an http proxy, not a tcp proxy and (most) database connections don't (typically) use http.
The solution is to adjust the corporate firewall to allow your server access to the internet, in general, or at least to the cloud based database port, if nothing else. In short, this is a dev ops or IT issue and needs to be resolved by whomever handles managing the firewall for your corporation. HTH! -- Denny On Wednesday, June 22, 2016 at 8:50:40 AM UTC-4, Dinesh Rampal wrote: > > Hi > > I have a application which works fine, but when i try to make it work in > office behind a corporate firewall, it fails to make a call to a internet > cloud based database. Querying in Google, i found that i need to set up > config parameters - *proxy and https-proxy*. > > npm config set proxy http://proxy.company.com:8080 > npm config set https-proxy http://proxy.company.com:8080 > > > I have done the above commands in all possible combinations, but it > doesn't work. > > Can somebody tell me how can i come around this problem ? Is this the only > way to solve this OR there are solutions to my issue. > > The exception which i get is - > event.js : 85 > > throw er; // Unhandled 'er' event. > > Error : connect ETIMEDOUT > > at exports._ErrnoExcpetion <util.js:746:11> > at TCPConnectWrap.afterConnect [as Oncomplete] > <net.js:1010:19> > > My project is at stake. > > Will appreciate all help. > > thanks a lot > > regards > dinesh > > > > > > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/e86e4dc5-fa31-4fe4-a1ef-b42a398979e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.