Working client server localhost implementation