Working localhost server and client