Adding listener to client to listen to incoming connections