Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Connection refused in production mode #117

Open
hectorthiele opened this issue Jul 15, 2015 · 2 comments
Open

Connection refused in production mode #117

hectorthiele opened this issue Jul 15, 2015 · 2 comments

Comments

@hectorthiele
Copy link

I can't run the program in production mode.

When I open a view in localhost, it work fine, but when I run the project in 192.168.0.100:3000, it's not work and the message that appear is "connection refused". My firewall is out and I don't have idea of what is the problem.

My public_pub.yml file has this contain.

development:
server: "http://192.168.0.100:9292/faye"
secret_token: "secret"
test:
server: "http://192.168.0.100:9292/faye"
secret_token: "secret"
production:
server: "http://192.168.0.100:9292/faye"
secret_token: "secret"
signature_expiration: 3600 # one hour

the ip 192.168.0.100 is a address in a internal network.

This IP is a server.

Note: when I run with the server address in localhost:9292/faye, it work fine.

@foadmk
Copy link

foadmk commented Oct 14, 2015

I have a similar issue. Faye is running in the same place as my application, so when I set faye's address as the public address, my rails app can't acess it. If I set it to localhost the cliente browser will no access it. I know I can fix it using iptables, but doesn't seem a clean solution.

@porta8080
Copy link

@foadmk how do you fix it using iptables? did you manage to find a solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants