Iteration branch pull request for review.

This will bind to local loopback ip. What this means is that this service will only be available to your machine.
Also when using GetHostEntry use the AddressFamily to decide which IP to use instead of directly picking the one at index 1.