Formatting
Fix NullPointerException when receiving no encoding information
implemented host resolution and checking of IP-Adresses using InetAddress.getAllByName