{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/2871","repository_url":"https://api.github.com/repos/ember-cli/ember-cli","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/2871/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/2871/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/2871/events","html_url":"https://github.com/ember-cli/ember-cli/issues/2871","id":53255514,"number":2871,"title":"Trouble proxying requests","user":{"login":"brandonparsons","id":1277162,"avatar_url":"https://avatars.githubusercontent.com/u/1277162?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonparsons","html_url":"https://github.com/brandonparsons","followers_url":"https://api.github.com/users/brandonparsons/followers","following_url":"https://api.github.com/users/brandonparsons/following{/other_user}","gists_url":"https://api.github.com/users/brandonparsons/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonparsons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonparsons/subscriptions","organizations_url":"https://api.github.com/users/brandonparsons/orgs","repos_url":"https://api.github.com/users/brandonparsons/repos","events_url":"https://api.github.com/users/brandonparsons/events{/privacy}","received_events_url":"https://api.github.com/users/brandonparsons/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-01-02T14:36:11Z","updated_at":"2016-03-01T22:19:40Z","closed_at":"2015-01-03T05:37:20Z","body":"Hi there,\r\n\r\nStarting up a new ember project (after a few months away) and having some issues proxying requests via ember-cli.  This could very well be something I am doing wrong.....\r\n\r\nI have a pretty plain vanilla ember JS app, and a rails app running on `localhost:3000`.  I have verified that I can visit `localhost:3000/api/v1/objects` in both the command line & the browser, both properly return JSON.\r\n\r\nThe ember app is started as follows: `ember serve --proxy http://localhost:3000`, and I get an error the second it tries to proxy a request:\r\n\r\n```\r\n$ ember serve --proxy http://127.0.0.1:3000\r\nversion: 0.1.5\r\nProxying to http://127.0.0.1:3000\r\nLivereload server on port 35729\r\nServing on http://0.0.0.0:4200/\r\n\r\nBuild successful - 1877ms.\r\n\r\nSlowest Trees                  | Total          \r\n-------------------------------+----------------\r\nEsnextFilter                   | 375ms          \r\nClass                          | 300ms          \r\nClass                          | 206ms          \r\nES3SafeFilter                  | 146ms          \r\nJSHint - App                   | 120ms          \r\n\r\nError proxying to http://127.0.0.1:3000\r\nconnect ECONNREFUSED\r\nError: connect ECONNREFUSED\r\n    at errnoException (net.js:904:11)\r\n    at Object.afterConnect [as oncomplete] (net.js:895:19)\r\n```\r\n\r\nIs there something I need to add, or something that has changed in the way requests are supposed to be proxied?  There isn't much in the ember app itself other than a model, and some basic routes/templates."},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/190932681","html_url":"https://github.com/ember-cli/ember-cli/issues/2871#issuecomment-190932681","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/2871","id":190932681,"user":{"login":"ekampp","id":40206,"avatar_url":"https://avatars.githubusercontent.com/u/40206?v=3","gravatar_id":"","url":"https://api.github.com/users/ekampp","html_url":"https://github.com/ekampp","followers_url":"https://api.github.com/users/ekampp/followers","following_url":"https://api.github.com/users/ekampp/following{/other_user}","gists_url":"https://api.github.com/users/ekampp/gists{/gist_id}","starred_url":"https://api.github.com/users/ekampp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekampp/subscriptions","organizations_url":"https://api.github.com/users/ekampp/orgs","repos_url":"https://api.github.com/users/ekampp/repos","events_url":"https://api.github.com/users/ekampp/events{/privacy}","received_events_url":"https://api.github.com/users/ekampp/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T22:19:40Z","updated_at":"2016-03-01T22:19:40Z","body":"I found that it's a problem with rails not listening to the 0.0.0.0 and 127.0.0.1 interfaces. Adding the `-b 0.0.0.0` flag to the `rails s` command solved the problem for me. "}}