changed localhost to ipv4 address.