Changed localhost to ip address.