Fixing IP parsing

Fixing ip addresses for vms.