Modify to use localhost as server