Use localhost when running locally to avoid potential network issues

Change-Id: Ie43604a2b41d2214d55d0976ba3c81ea361c8c56