EXACTLY which DHT library are you using? Have you tried the built-in examples that come with that library?