The network of client hosts can be grouped into the following types:
1, opened: The host has public network IP, and there is no firewall, free and external communication.
2, full Cone NAT: NAT device in front of host,
The NAT rules are as follows: Packets sent from host UDP port a correspond to Port B of the NAT device's export IP, and packets sent from any external address to the NAT device UDP port B are transferred to host Port A.
3, restricted cone NAT: A NAT device in front of the host,
The NAT rules are as follows: Packets sent from host UDP port a correspond to Port B of the NAT device's export IP, but only packets from the destination IP from the host that sent the packet to the NAT device UDP port B will be transferred to host Port A.
4, Port restricted cone NAT: NAT device in front of host,
The NAT rules are as follows: Packets sent from host UDP port A will correspond to Port B of the NAT device export IP, but only the purpose of the packet being sent from the previous host ip/