added some code to test if client is actually accessing server.