progrium / localtunnel

Expose localhost servers to the Internet
MIT License
3.2k stars 242 forks source link

Connection refused - connect(2) (Errno::ECONNREFUSED) #45

Closed Sasha04 closed 9 years ago

Sasha04 commented 12 years ago

Hi, I'm trying to use localtunnel on Mac OSX 10.7.3 but I obtain this error:

localtunnel -k ~/.ssh/id_rsa.pub 80 /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:in initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:inopen' from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:in initialize' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:53:intimeout' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:93:in timeout' from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh/transport/session.rb:66:ininitialize' from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh.rb:186:in new' from /Library/Ruby/Gems/1.8/gems/net-ssh-2.3.0/lib/net/ssh.rb:186:instart' from /Library/Ruby/Gems/1.8/gems/net-ssh-gateway-1.1.0/lib/net/ssh/gateway.rb:74:in initialize' from /Library/Ruby/Gems/1.8/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:innew' from /Library/Ruby/Gems/1.8/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in start_tunnel' from /Library/Ruby/Gems/1.8/gems/localtunnel-0.3/bin/localtunnel:47 from /usr/bin/localtunnel:19:inload' from /usr/bin/localtunnel:19

What's wrong? Thx!

progrium commented 12 years ago

I'm not able to reproduce. Are you sure it wasn't an intermittent issue?

Sasha04 commented 12 years ago

sorry but i always have this error. I don't know how to fix it

TheEmpty commented 12 years ago

Sounds like it's your firewall preventing the SSH tunnel.

progrium commented 11 years ago

Can you try the latest beta version of localtunnel? Check the README for install details.