ETIMEDOUT bitcore-p2p

I installed bitcore and bitcoire-p2p

var Peer = require(__dirname+’/…/node_modules/bitcore-p2p’).Peer;
var peer = new Peer({host: ‘’});

// handle events
peer.on(‘inv’, function(message) {



after a while i get

‘Error: connect ETIMEDOUT’,
‘Object.exports._errnoException (util.js:870:11)’,
‘exports._exceptionWithHostPort (util.js:893:20)’,
‘TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)’

am I suppose to open up a port on my firewall or something for this to work?

I just want to listen to new transactions and new blocks

You may want to take a look at using Pool as it will keep several connections open, and rotate them out as they disconnect.