Android: NAT Traversal?
问题 It appears to me that newer Android devices run behind a NAT, where the local address is an internal carrier or LAN address and the public address is the router or carrier assigned external address. Nevertheless, newer phones don't return the same address using the NetworkInterface as when accessing an IP detection service. Therefore, connecting via direct P2P SocketChannels inherently fails. Are there any common workarounds to this problem designed for the Android platform? Can anyone