working connection btw client and server