question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

connection refused error

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

21reactions
jnrfredcommented, Jul 13, 2017

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

4reactions
kagbodjicommented, Aug 10, 2017

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

What can be the reasons of connection refused errors?
Connection refused means that the port you are trying to connect to is not actually open. So either you are ...
Read more >
What causes the 'Connection Refused' message? - Server Fault
ELI5 version: it means the connection request got to the other computer, and the other computer had no clue what you were talking...
Read more >
How to Fix the ERR_CONNECTION_REFUSED Error in Chrome
When you visit a website using Google Chrome and encounter this message, it means that your attempt to connect was refused. This error...
Read more >
What is a TCP Connection Refused? - Pico Quantitative Trading
In general, connection refused errors are generated during a connect system call when an application attempts to connect using TCP to a server...
Read more >
10 Methods to Fix the ERR_CONNECTION_REFUSED Error ...
This error can be encouraged on just about any browser under different names. This is a client-side issue that's most likely related to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found