Made client use sockets