Note that using the old sockets API probably will not work