Connect to appium server time out when on proxy on mobile device

Hello. I am having a problem as follows:
When I turn on the proxy on my mobile device, the connection to the appiun service error time out. How to fix this problem?