changed server addr to localhost to allow conn