The invention relates to the field of
computer network communication, and discloses a cross-network
local area network gateway penetrating method, which comprises the following specific steps: S1, complete conical NAT (
Network Address Translation) penetration: acquiring a
public network I P (
Internet Protocol) address and a port of a
private network machine through
server transfer, so that the machines of the two parties can directly communicate through the
public network address; s2, restricting tapered
NAT traversal: performing communication between
private network machines by using a
relay server and a specific communication step, notifying an opposite
public network I P address through
server transfer, and performing traversal through server auxiliary transmission data; and S3, symmetric
NAT traversal: under the condition of symmetric NAT, communication of the
private network machine is carried out by using the transit server and a port guessing method, the
time difference of a plurality of mapping ports is obtained through multiple communication attempts, and a correct communication port is speculated to carry out
NAT traversal. Through the NAT penetration technology, the private network
machine can directly communicate with the external network machine, so that end-to-end direct
data transmission is realized, and interference and
delay of an intermediate node are avoided.