Android: NAT Traversal?

后端 未结 4 1745
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 10:23

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 a

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 11:09

    Almost every phone or PC you will ever touch won't have a static public IP address, and therefore will require NAT traversal. It's not because of the device; the carrier or ISP put routers between your device and the public internet. Depending on your application, usually there are NAT-traversal libraries you can use, such as ice4j or STUNT.

提交回复
热议问题