This paper discusses efficient addressing schemes for the Internet of Things (IoT), focusing on mobility management using Proxy Mobile IPv6 with Constrained Application Protocol. It presents a novel distance estimation algorithm that reduces execution time and enhances secure data transmission within wireless sensor networks (WSNs). Evaluation results indicate that the proposed method significantly improves performance metrics such as delay, energy efficiency, and packet delivery ratio.