use localhost instead of ip.