Basically if the server is hiding/hashing the address then you can't get it. After all, pretty much the entire reason servers do that is to stop people getting other users' IPs. You might as well attempt a DNS via code and then if it fails prompt the user so they can manually ask for (and input) a real address.