Working sockets and logs