Addressed some Java warnings; closed a completed socket, removed unused
imports.
Limited reading of packets to 40 bytes.
The name of the host is now truncated. Only the IP and the port is kept.
Reverted back to UTF-8 encoding.