I had the same problem in my virtual machine when testing Discourse. You really need to change the configuration setting for WEBrick. Look for your WEBrick configurator, which is usually located in /usr/lib/ruby/1.9.3/webrick/config.rb , yours may be different, it all depends on the particular setting.
Then change this line
:DoNotReverseLookup => nil,
to that
:DoNotReverseLookup => true,
Restart WEBrick and you should be good to go.
source share