robbie-cahill / tunnelmole-client

Tunnelmole - Connect to local servers from anywhere
MIT License
1.29k stars 80 forks source link

Error: connect ECONNREFUSED 127.0.0.1:8081 #31

Closed umeshtyagitvz closed 1 year ago

umeshtyagitvz commented 1 year ago

I have been testing tunnelmole with the NPM module tunnelmole

OS - Ubuntu NodeJs - 18.16.1

Code

import { tunnelmole } from 'tunnelmole';

const url = await tunnelmole({
    port: 3000
});

Error

Error: connect ECONNREFUSED 127.0.0.1:8081
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 8081
}
robbie-cahill commented 1 year ago

Looks like you've grabbed the old version that had this bug.

Upgrade to the latest version 2.2.11 and this should solve the issue.

Sent from Proton Mail mobile

-------- Original Message -------- On 26 Nov 2023, 01:19, umeshtyagitvz wrote:

I have been testing tunnelmole with the NPM module tunnelmole

OS - Ubuntu NodeJs - 18.16.1

Code

import { tunnelmole } from 'tunnelmole';

const url = await tunnelmole({ port: 3000 });

Error

Error: connect ECONNREFUSED 127.0.0.1:8081 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {

errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8081 }

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

umeshtyagitvz commented 1 year ago

I have been using the latest version only. image

robbie-cahill commented 1 year ago

Thats the one behind. You'll need 2.2.11. Your screenshot shows 2.2.10.

umeshtyagitvz commented 1 year ago

Thanks for help