Wireless sensor network is a distributed communication transmission network in which nodes perceive the environment by transmitting information through atively. The main function of the sensor node is to collect the data information in the surrounding environment. If the location of the node is unknown, the monitored data will lose its meaning. According to whether additional hardware or equipment is needed to assist the positioning process, the positioning can be divided into two types of positioning technology based on ranging algorithm and non-ranging algorithm. Compared with ranging algorithms, non-ranging positioning algorithms have attracted wide attention because they only rely on the connectivity of the whole network, no additional ranging hardware, and high robustness. However, due to its low accuracy and poor stability, improving the performance of non-ranging positioning algorithm has become a hot research topic for scholars. The main purpose of this paper is to improve localization by using a Aersea sheath optimization algorithm. To achieve this goal, this paper proposes a range-free distributed method by applying the sea sheath group algorithm to move the target nodes in the maritime rescue network. The results are compared with existing particle swarm optimization and butterfly optimization algorithms. The localization error of the proposed method is reduced by approximately 10% when compared to and. The proposed algorithm is verified in terms of localization accuracy, localization nodes, localization error and computation time.