在 android 中的 100000 毫秒后无法连接到端口 80

failed to connect to port80 after 100000ms in android

I am hitting otp api's from Emulator its work but if I am using real device then getting failed to http connecting error found. 2020-11-06 13:33:23.603 24840-24840/a3.amp35.in E/Genrate: failed to connect to /192.168.132.101 (port 80) from /26.81.35.26 (port 39596) after 100000ms need help

您的设备在本地网络之外。 Api 开启 192.168.132.101 而设备不在给定网络 26.81.35.26

将您的 API 暴露给外界(例如端口转发或托管在全球可访问的设备上)或将您的设备连接到本地网络(例如使用相同的 WIFI,或通过 VPN )

192.168.132.101 上的防火墙设置也可能会阻止来自不同子网的传入连接。

可能还有更多可能的原因...