localtunnel: connection refused error

Node version: v6.8.0

Command launched: lt -l 5000

After a successfull 5.4Mb file transfer I got this error:

/usr/local/lib/node_modules/localtunnel/bin/client:58
        throw err;
        ^

Error: connection refused: localtunnel.me:33765 (check your firewall settings)
    at Socket.<anonymous> (/usr/local/lib/node_modules/localtunnel/lib/TunnelCluster.js:47:32)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1276:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 16 (1 by maintainers)

Most upvoted comments

@roccomuso Make sure your firewall is off and it will work fine

appears to be a known issue, that maybe hasn’t been fixed yet. see https://github.com/localtunnel/localtunnel/issues/81. @Hacker432-Y550’s suggested workaround works well for me:

#!/bin/bash

function localtunnel {
  lt -s subdomain --port port_number
}

until localtunnel; do
  echo "localtunnel server crashed"
  sleep 2
done

any permanent fix, especially for cli?