The invention discloses a
data transmission method and device and
electronic equipment, a first terminal and a second terminal construct a first
data transmission channel through a point-to-point network
server, and when the first terminal and the second terminal belong to the same
local area network, the first terminal sends data to the second terminal based on a second
data transmission channel of the
local area network. When the first terminal and the second terminal do not belong to the same
local area network, the first terminal and the second terminal perform
session key negotiation, data is encrypted by using a
session key obtained by negotiation, the encrypted data is sent to the second terminal based on the first data
transmission channel, and the data is transmitted to the second terminal according to the judgment whether the two terminals belong to the same local
area network. The local
area network or the
public network is automatically selected to transmit data, the transmission speed is high and more bandwidth resources are saved during local
area network transmission, and the security and speed of data transmission are effectively ensured by combining the constructed first data
transmission channel with
session key negotiation during
public network transmission, so that the security and efficiency of data transmission are improved.