I’m sorry,  I am  a novice.This is what I can think of the best way to detect whether the server is in China.Chinese poor network environment caused connection timeout,and I have no idea but to change the source