Already answered in Node-RED "Error: 14 UNAVAILABLE: Connect Failed" when using node-red-contrib-ttn - #12 by GeorgeKroon.