title: Rails - No connection could be made because the target machine actively refused it. - connect(2)
body: <p>I want to send a POST/GET from a Rails application to a specific address. However, when I run the application, I got the error: "No connection could be made because the target machine actively refused it. - connect(2)" Below are my codes:</p>
  
  <pre><code>  def show
      @uri = URI('example.com/getuser?user=bob&amp;email=bob84@gmail.com')
      @profile = Net::HTTP.get(@uri)
      puts @profile
    end
  </code></pre>