[Windows] TUN inbound: outbound connections stall with Mobile Hotspot enabled despite autoOutboundsInterface
Author: KiGamjiCreated Sep 30, 2026Updated Sep 30, 2026
@KiGamji 那你开个 issue 吧,大家一起看看有没有更好的解决办法,你这治标不治本,毕竟出站也可以是域名是要动态解析的
Originally posted by @RPRX in https://github.com/XTLS/Xray-core/issues/6853#issuecomment-5903219013
With Windows Mobile Hotspot/ICS enabled, Xray’s outbound connections stall after enabling TUN. autoOutboundsInterface is set to the physical adapter’s name, hence the log confirms the correct interface.
A standalone TCP socket using the same IP_UNICAST_IF setting also times out while TUN is active. Adding a /32 route to the proxy server through the physical gateway restores connectivity. Disabling Mobile Hotspot also resolves the issue.
Reproduced with Xray 26.9.9. The host route is only a workaround; I still need to figure out how ICS causes this.
Source: XTLS/Xray-core