STUN : Simple Traversal of User Datagram Protocol [UDP] Through Network Address Translators [NATs] STUN protocol (Simple Traversal of UDP through NATs) is described in the IETF RFC 3489, available at http://www.ietf.org/rfc/rfc3489.txt http://www.iet…
NAT分为四种类型: (1)完全透明NAT(Full Cone NAT): 从内部主机 (IN IP ipa) +端口(IN PORT porta) 发送的数据映射为 IP(OUT IP IPA)和端口(OUT PORT PORTA) 发送到外网 从服务器直连到映射的 IP(OUT IP IPA)和端口(OUT PORT PORTA)上,数据将会被转发到内部主机(IN IP ipa), (IN PORT porta)上. 举例来说:内部的机器Client1(ipa:porta)连接Serv…