-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
here's my codes
in localhost and it works well
const ib = require('ib');
let client = new ib({ clientId : 1 , host : 'localhost' , port : 7497 });
client.connect();
client.on('connected' , () => {
console.log("success");
}).on("error" , () => {
console.log("error");
});here , it's hosted in DigitalOcean server
const ib = require('ib');
let client = new ib({ clientId : 1 , host : 'my public ip' , port : 7497 });
client.connect();
client.on('connected' , () => {
console.log("success");
}).on("error" , () => {
console.log("error");
});it does not work in this case , my TWS are configured to receive from external IPs, not only the localhost (I also added my DigitalOcean server public ip to my TWS trusted IPs)
DigitalOcean blocks all the ports by default (except 80) , I also opened 7497
but still the same issue
Metadata
Metadata
Assignees
Labels
No labels