The present invention provides an anti-packet loss method, device, storage medium and electronic equipment for an unreliable network, wherein the method includes: determining a plurality of first valid data packets containing corresponding first numbers, and sending them to the The first target device sends the first valid data packet; if the first packet loss rate fed back by the first target device is obtained, a plurality of second valid data packets containing the corresponding second numbers are determined according to the first packet loss rate, and sent according to the The second valid data packets are sequentially sent to the first target device. In this embodiment, the data packets sent to the target device contain sequentially generated numbers, so that the target device can calculate the packet loss rate in real time, and then the server can adjust the encoding strategy in real time based on the packet loss rate, so that dynamic encoding can be realized according to the network status , improve the ability to resist packet loss, and ensure the quality of data transmission; in the unreliable network environment with high packet loss rate, it can also provide low-quality data.