Cannot render from console



Ever since I can remember, I have been getting this message when running a Rails server

Cannot render console from [IP]! Allowed networks:, ::1,

I have removed the actual IP shown in the message, just in case.

The server runs fine and the application runs fine as well, but I keep getting this message repeatedly and would like to know what it means?


Something in your application is listening on but only accepts requests from Accessing things via the preview page will come from an external IP.


This should help:


Thanks for the replies guys. I had no idea it was a Rails issue.

So it seems I should white-list the IP shown in the message? I tried that using:

config.web_console.whitelisted_ips = '[] in config/environments/development.rb and restarted the server. But I am still getting this message repeatedly.

By the way, is this something that must be done? What would happen if it’s just left as it is?


I think it’s just a warning so it shouldn’t cause issues.

You should add your personal IP address to that array instead of just having an empty array. Or you can disable the message completely with:

class Application < Rails::Application
  config.web_console.whiny_requests = false

As mentioned in the stackoverflow thread.


Thanks Tim :slightly_smiling:


I am getting the same error “Cannot render console from! Allowed networks:,, ::1” and because of which I am not able to view my templates any idea?


@timjrobinson: When I test my (unfinished) application, I get this error:
method_missing': undefined methodweb_console’ for # Rails::Application::Configuration:0x00000003ed4970

[ I tried to paste in more than 1 line of the error code; didn’t succeed. ]

Your solution does work; but why this strange test result?


This worked for me! Add the network of the Cloud9 preview servers, to your development.rb file

config.web_console.whitelisted_ips << "" # cloud9's preview network

I’m not sure of c9’s network schematic for different regions, but I was getting a and a so I masked the last 16 bits (or 2 octets).