Libtorch windows socket

My current state is under windoes, use libtorch and use network programming-socket.
But, I find that <WINSOCK2.H> conflicts with <torch/script.h>.
I am helpless now, who has good advice?
Thanks!