Use sockets to send commands