Fixed bug in extraction of host IPs.

The current code was extracting the IP address incorrectly,
as it was ending up with addr:w.x.y.z, rather than just
w.x.y.z. This fixes that.

Signed-off-by: Thomas Bachman <tbachman@yahoo.com>