E
E
egorlisss2019-07-29 08:30:07
Node.js
egorlisss, 2019-07-29 08:30:07

How to fix an error when creating a tunnel through ngrok?

I'm trying to create a tunnel through Ngrok, I get an error:
XD_SrjVDByE.jpg

ngrok.connect({
    proto: 'tcp',
    addr: 25565,
    authtoken: '5u****UT',
    region: 'eu'
}, (err, url) => {
    if (err) {
        console.error('Error while connecting Ngrok',err);
        return new Error('Ngrok Failed');
    } else {
        console.log('Tunnel Created -> ', url);
        console.log('Tunnel Inspector ->  http://127.0.0.1:4040');
    }
}).catch(err => {
            console.log(err);
        });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question