The error encountered was: dial tcp [::1]:3000: getsockopt: connection refusedExposing localhost to the internet via tunneling (using ngrok): HTTP error 400: bad request; invalid hostnameRuby OptionParser throwing ArgumentErrorMaking a Ruby Gem - Cannot Load Such FileRails server quits right when it startsRails server does not start in ubuntu bash for windows 10Error when installing JSON 1.8.3 gem on OS X YosemiteRake Assets:precompile failingconfig/environments/development.rb:30:in `<top (required)>': undefined local variable or method `config' for main:Object (NameError)NoMethodError: undefined method `params' - during controller tests with AuthlogicAction Cable Rails got error “ RuntimeError - Unable to find subscription with identifier”Rails FCM throwing ArgumentError

Japan - Plan around max visa duration

XeLaTeX and pdfLaTeX ignore hyphenation

How do I create uniquely male characters?

Are tax years 2016 & 2017 back taxes deductible for tax year 2018?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Download, install and reboot computer at night if needed

A function which translates a sentence to title-case

How can I fix this gap between bookcases I made?

What do you call a Matrix-like slowdown and camera movement effect?

What typically incentivizes a professor to change jobs to a lower ranking university?

How does one intimidate enemies without having the capacity for violence?

DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?

Why are only specific transaction types accepted into the mempool?

Can I interfere when another PC is about to be attacked?

How to make payment on the internet without leaving a money trail?

Set-theoretical foundations of Mathematics with only bounded quantifiers

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Is there really no realistic way for a skeleton monster to move around without magic?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Draw simple lines in Inkscape

I see my dog run

New order #4: World

Why is the design of haulage companies so “special”?



The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused


Exposing localhost to the internet via tunneling (using ngrok): HTTP error 400: bad request; invalid hostnameRuby OptionParser throwing ArgumentErrorMaking a Ruby Gem - Cannot Load Such FileRails server quits right when it startsRails server does not start in ubuntu bash for windows 10Error when installing JSON 1.8.3 gem on OS X YosemiteRake Assets:precompile failingconfig/environments/development.rb:30:in `<top (required)>': undefined local variable or method `config' for main:Object (NameError)NoMethodError: undefined method `params' - during controller tests with AuthlogicAction Cable Rails got error “ RuntimeError - Unable to find subscription with identifier”Rails FCM throwing ArgumentError






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.



localhost:3000 runs and I can get webhooks to ngrok. What's the matter?




The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.



Make sure that a web service is running on localhost:3000 and that it is a valid address.



The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused




After I see localhost:3000, rails application runs. Why that could not connect....



Here is the result ps aux | grep ruby.



user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby


Update



I have tried to kill last one. But I couldn't because process number is random every time like below:





And I could not connect ngrok still ....










share|improve this question
























  • Can you post the full backtrace errors from your rails server in your local terminal?

    – lacostenycoder
    Mar 22 at 1:15











  • Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.

    – k10a
    Mar 22 at 1:45











  • what do you mean by click localhost:3000 ?

    – lacostenycoder
    Mar 22 at 2:08











  • type this in the terminal and paste your output in your question. ps aux | grep ruby

    – lacostenycoder
    Mar 22 at 2:24











  • @lacostenycoder Thanks so much. I have added the result in questions.

    – k10a
    Mar 22 at 2:46

















1















I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.



localhost:3000 runs and I can get webhooks to ngrok. What's the matter?




The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.



Make sure that a web service is running on localhost:3000 and that it is a valid address.



The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused




After I see localhost:3000, rails application runs. Why that could not connect....



Here is the result ps aux | grep ruby.



user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby


Update



I have tried to kill last one. But I couldn't because process number is random every time like below:





And I could not connect ngrok still ....










share|improve this question
























  • Can you post the full backtrace errors from your rails server in your local terminal?

    – lacostenycoder
    Mar 22 at 1:15











  • Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.

    – k10a
    Mar 22 at 1:45











  • what do you mean by click localhost:3000 ?

    – lacostenycoder
    Mar 22 at 2:08











  • type this in the terminal and paste your output in your question. ps aux | grep ruby

    – lacostenycoder
    Mar 22 at 2:24











  • @lacostenycoder Thanks so much. I have added the result in questions.

    – k10a
    Mar 22 at 2:46













1












1








1








I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.



localhost:3000 runs and I can get webhooks to ngrok. What's the matter?




The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.



Make sure that a web service is running on localhost:3000 and that it is a valid address.



The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused




After I see localhost:3000, rails application runs. Why that could not connect....



Here is the result ps aux | grep ruby.



user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby


Update



I have tried to kill last one. But I couldn't because process number is random every time like below:





And I could not connect ngrok still ....










share|improve this question
















I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.



localhost:3000 runs and I can get webhooks to ngrok. What's the matter?




The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.



Make sure that a web service is running on localhost:3000 and that it is a valid address.



The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused




After I see localhost:3000, rails application runs. Why that could not connect....



Here is the result ps aux | grep ruby.



user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby


Update



I have tried to kill last one. But I couldn't because process number is random every time like below:





And I could not connect ngrok still ....







ruby-on-rails ruby ngrok






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 4:36







k10a

















asked Mar 22 at 0:52









k10ak10a

347




347












  • Can you post the full backtrace errors from your rails server in your local terminal?

    – lacostenycoder
    Mar 22 at 1:15











  • Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.

    – k10a
    Mar 22 at 1:45











  • what do you mean by click localhost:3000 ?

    – lacostenycoder
    Mar 22 at 2:08











  • type this in the terminal and paste your output in your question. ps aux | grep ruby

    – lacostenycoder
    Mar 22 at 2:24











  • @lacostenycoder Thanks so much. I have added the result in questions.

    – k10a
    Mar 22 at 2:46

















  • Can you post the full backtrace errors from your rails server in your local terminal?

    – lacostenycoder
    Mar 22 at 1:15











  • Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.

    – k10a
    Mar 22 at 1:45











  • what do you mean by click localhost:3000 ?

    – lacostenycoder
    Mar 22 at 2:08











  • type this in the terminal and paste your output in your question. ps aux | grep ruby

    – lacostenycoder
    Mar 22 at 2:24











  • @lacostenycoder Thanks so much. I have added the result in questions.

    – k10a
    Mar 22 at 2:46
















Can you post the full backtrace errors from your rails server in your local terminal?

– lacostenycoder
Mar 22 at 1:15





Can you post the full backtrace errors from your rails server in your local terminal?

– lacostenycoder
Mar 22 at 1:15













Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.

– k10a
Mar 22 at 1:45





Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.

– k10a
Mar 22 at 1:45













what do you mean by click localhost:3000 ?

– lacostenycoder
Mar 22 at 2:08





what do you mean by click localhost:3000 ?

– lacostenycoder
Mar 22 at 2:08













type this in the terminal and paste your output in your question. ps aux | grep ruby

– lacostenycoder
Mar 22 at 2:24





type this in the terminal and paste your output in your question. ps aux | grep ruby

– lacostenycoder
Mar 22 at 2:24













@lacostenycoder Thanks so much. I have added the result in questions.

– k10a
Mar 22 at 2:46





@lacostenycoder Thanks so much. I have added the result in questions.

– k10a
Mar 22 at 2:46












2 Answers
2






active

oldest

votes


















1














Thanks @lascostenycoder



I'm so surprised that I could fix that after sudo vi /etc/hosts.
I had edited for other projects with MAMP. So I could not do that.



Thanks for your help :)






share|improve this answer























  • I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.

    – lacostenycoder
    Mar 22 at 13:20


















0














You need to add the port to your ngrok command, rails default local development is 3000



ngrok http 3000


Then you should be able to type your ngrok address in your browser



http://xxxxxx.ngrok.io/


The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.



UPDATE 2



Make sure you don't have anything going on in /etc/hosts that could cause a problem.



Update



Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all



ps aux | grep ruby | awk 'print $2' | xargs kill -9


Or try to see if spring is the problem:



spring status
spring stop


Then check and make sure everything has been killed, then start over from step 1.



ps aux | grep ruby


It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.






share|improve this answer

























  • Thanks for your comment. I run ngrok http 3000 and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.

    – k10a
    Mar 22 at 1:41











  • @k10a is your rails server running in another terminal before you run ngrok ? And of course the xxxx is fake, you'll get a new random hash prefix each time you run a new ngrok

    – lacostenycoder
    Mar 22 at 1:45












  • Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.

    – k10a
    Mar 22 at 2:01











  • @k10a how are you launching rails server?

    – lacostenycoder
    Mar 22 at 2:06











  • Thanks for your help. In termnial, $ rails s as usual.

    – k10a
    Mar 22 at 2:45











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55291351%2fthe-error-encountered-was-dial-tcp-13000-getsockopt-connection-refused%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Thanks @lascostenycoder



I'm so surprised that I could fix that after sudo vi /etc/hosts.
I had edited for other projects with MAMP. So I could not do that.



Thanks for your help :)






share|improve this answer























  • I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.

    – lacostenycoder
    Mar 22 at 13:20















1














Thanks @lascostenycoder



I'm so surprised that I could fix that after sudo vi /etc/hosts.
I had edited for other projects with MAMP. So I could not do that.



Thanks for your help :)






share|improve this answer























  • I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.

    – lacostenycoder
    Mar 22 at 13:20













1












1








1







Thanks @lascostenycoder



I'm so surprised that I could fix that after sudo vi /etc/hosts.
I had edited for other projects with MAMP. So I could not do that.



Thanks for your help :)






share|improve this answer













Thanks @lascostenycoder



I'm so surprised that I could fix that after sudo vi /etc/hosts.
I had edited for other projects with MAMP. So I could not do that.



Thanks for your help :)







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 22 at 7:50









k10ak10a

347




347












  • I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.

    – lacostenycoder
    Mar 22 at 13:20

















  • I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.

    – lacostenycoder
    Mar 22 at 13:20
















I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.

– lacostenycoder
Mar 22 at 13:20





I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.

– lacostenycoder
Mar 22 at 13:20













0














You need to add the port to your ngrok command, rails default local development is 3000



ngrok http 3000


Then you should be able to type your ngrok address in your browser



http://xxxxxx.ngrok.io/


The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.



UPDATE 2



Make sure you don't have anything going on in /etc/hosts that could cause a problem.



Update



Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all



ps aux | grep ruby | awk 'print $2' | xargs kill -9


Or try to see if spring is the problem:



spring status
spring stop


Then check and make sure everything has been killed, then start over from step 1.



ps aux | grep ruby


It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.






share|improve this answer

























  • Thanks for your comment. I run ngrok http 3000 and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.

    – k10a
    Mar 22 at 1:41











  • @k10a is your rails server running in another terminal before you run ngrok ? And of course the xxxx is fake, you'll get a new random hash prefix each time you run a new ngrok

    – lacostenycoder
    Mar 22 at 1:45












  • Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.

    – k10a
    Mar 22 at 2:01











  • @k10a how are you launching rails server?

    – lacostenycoder
    Mar 22 at 2:06











  • Thanks for your help. In termnial, $ rails s as usual.

    – k10a
    Mar 22 at 2:45















0














You need to add the port to your ngrok command, rails default local development is 3000



ngrok http 3000


Then you should be able to type your ngrok address in your browser



http://xxxxxx.ngrok.io/


The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.



UPDATE 2



Make sure you don't have anything going on in /etc/hosts that could cause a problem.



Update



Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all



ps aux | grep ruby | awk 'print $2' | xargs kill -9


Or try to see if spring is the problem:



spring status
spring stop


Then check and make sure everything has been killed, then start over from step 1.



ps aux | grep ruby


It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.






share|improve this answer

























  • Thanks for your comment. I run ngrok http 3000 and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.

    – k10a
    Mar 22 at 1:41











  • @k10a is your rails server running in another terminal before you run ngrok ? And of course the xxxx is fake, you'll get a new random hash prefix each time you run a new ngrok

    – lacostenycoder
    Mar 22 at 1:45












  • Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.

    – k10a
    Mar 22 at 2:01











  • @k10a how are you launching rails server?

    – lacostenycoder
    Mar 22 at 2:06











  • Thanks for your help. In termnial, $ rails s as usual.

    – k10a
    Mar 22 at 2:45













0












0








0







You need to add the port to your ngrok command, rails default local development is 3000



ngrok http 3000


Then you should be able to type your ngrok address in your browser



http://xxxxxx.ngrok.io/


The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.



UPDATE 2



Make sure you don't have anything going on in /etc/hosts that could cause a problem.



Update



Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all



ps aux | grep ruby | awk 'print $2' | xargs kill -9


Or try to see if spring is the problem:



spring status
spring stop


Then check and make sure everything has been killed, then start over from step 1.



ps aux | grep ruby


It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.






share|improve this answer















You need to add the port to your ngrok command, rails default local development is 3000



ngrok http 3000


Then you should be able to type your ngrok address in your browser



http://xxxxxx.ngrok.io/


The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.



UPDATE 2



Make sure you don't have anything going on in /etc/hosts that could cause a problem.



Update



Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all



ps aux | grep ruby | awk 'print $2' | xargs kill -9


Or try to see if spring is the problem:



spring status
spring stop


Then check and make sure everything has been killed, then start over from step 1.



ps aux | grep ruby


It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 22 at 13:19

























answered Mar 22 at 1:13









lacostenycoderlacostenycoder

4,54611331




4,54611331












  • Thanks for your comment. I run ngrok http 3000 and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.

    – k10a
    Mar 22 at 1:41











  • @k10a is your rails server running in another terminal before you run ngrok ? And of course the xxxx is fake, you'll get a new random hash prefix each time you run a new ngrok

    – lacostenycoder
    Mar 22 at 1:45












  • Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.

    – k10a
    Mar 22 at 2:01











  • @k10a how are you launching rails server?

    – lacostenycoder
    Mar 22 at 2:06











  • Thanks for your help. In termnial, $ rails s as usual.

    – k10a
    Mar 22 at 2:45

















  • Thanks for your comment. I run ngrok http 3000 and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.

    – k10a
    Mar 22 at 1:41











  • @k10a is your rails server running in another terminal before you run ngrok ? And of course the xxxx is fake, you'll get a new random hash prefix each time you run a new ngrok

    – lacostenycoder
    Mar 22 at 1:45












  • Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.

    – k10a
    Mar 22 at 2:01











  • @k10a how are you launching rails server?

    – lacostenycoder
    Mar 22 at 2:06











  • Thanks for your help. In termnial, $ rails s as usual.

    – k10a
    Mar 22 at 2:45
















Thanks for your comment. I run ngrok http 3000 and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.

– k10a
Mar 22 at 1:41





Thanks for your comment. I run ngrok http 3000 and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.

– k10a
Mar 22 at 1:41













@k10a is your rails server running in another terminal before you run ngrok ? And of course the xxxx is fake, you'll get a new random hash prefix each time you run a new ngrok

– lacostenycoder
Mar 22 at 1:45






@k10a is your rails server running in another terminal before you run ngrok ? And of course the xxxx is fake, you'll get a new random hash prefix each time you run a new ngrok

– lacostenycoder
Mar 22 at 1:45














Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.

– k10a
Mar 22 at 2:01





Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.

– k10a
Mar 22 at 2:01













@k10a how are you launching rails server?

– lacostenycoder
Mar 22 at 2:06





@k10a how are you launching rails server?

– lacostenycoder
Mar 22 at 2:06













Thanks for your help. In termnial, $ rails s as usual.

– k10a
Mar 22 at 2:45





Thanks for your help. In termnial, $ rails s as usual.

– k10a
Mar 22 at 2:45

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55291351%2fthe-error-encountered-was-dial-tcp-13000-getsockopt-connection-refused%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현