CHINESE PATENT FOR SALE – FIREWALL TRAVERSING METHOD AND ELECTRONIC DEVICE
The invention discloses a firewall traversal method and an electronic device, belonging to the field of communication technology.
Method Description:
- Initial Communication:
- A first terminal device sends a preset protocol message to a TCP server.
- The TCP server registers the request and returns a registration confirmation message to the first terminal device.
- Communication Request:
- The first terminal device sends a calling request to the TCP server.
- The TCP server forwards the calling request to a second terminal device.
- Data Channel Establishment:
- The TCP server acquires a UDP server and sends its information to both the first and second terminal devices.
- The first terminal device sends a channel establishment request to the UDP server via a second preset protocol.
- The UDP server builds a data transmission channel between the first and second terminal devices.
Advantages:
The method enables data transmission while improving flexibility, compatibility, and coupling in data transfer through firewalls.