in reply to [Solved] Testing Dancer2 - simulating requests from different IP addresses
My guess, and it's nothing more, is that they set the Host: header in the HTTP::Response to be either LocalHost or 127.0.0.1.
Worth a look.