You need to specifically allow the 10.0.2.2 network space in the Web Console config.
So you’ll want something like this:
class Application < Rails::Application
config.web_console.permissions="10.0.2.2"
end
Read here for more information.
As pointed out by pguardiario, this wants to go into config/environments/development.rb rather than config/application.rb so it is only applied in your development environment.