changed localhost to server ip address