Fixing ip address parsing bugs for vms. Removed extra slash in locations
call.