Removed extra slash in locations call. Fixed bugs in setting and parsing

ip addresses for vms.