Use ip address instead of localhost

Within VM, localhost indicates wrong machine.