Checks P2P connect in loop and logs it in a file