Wireless networks have become an integral part of modern life, offering seamless connectivity and supporting various applications. However, achieving accurate node localization remains a significant challenge, particularly in environments where signal propagation is affected by obstacles, reflections, and interference. To address these challenges, a dynamic triangular algorithm method is proposed for node localization. This novel model aims to enhance the throughput, data rate, and efficiency of wireless communication systems in both Line-of-Sight (LOS) and Non-Line-of-Sight (NLOS) scenarios.