I'm creating a connection via the net module in my Node.js application:

this.stream = net.createConnection(25, host, this._onConnect);

Which works absolutely fine, however I need to send this traffic through Proximo because my connection requires a static IP. I'm not familiar with the net module, so any help would be beneficial.

有帮助吗?

解决方案

You shouldn't need to bind to anything or make any modifications to your code. As far as I know providing you've binded to the ip address that proximo gives you:

$ heroku addons:add proximo:development
Adding proximo to sharp-mountain-4005⦠done, v18 ($5/mo)
Your static IP address is 127.0.0.1

Your program will be wrapped in the proximo binary which routes all the TCP packets through the proxy. However you can limit the traffic with https://devcenter.heroku.com/articles/proximo#configuring-the-proximo-wrapper.

From my experience all the proximo setting up is on heroku's command line stuff.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top