Updated parsing to use the IP address part instead of hostnames for when the hostname is not present