Localization is expected to play a significant role in future wireless networks as positioning and situational awareness, navigation and tracking, are integral parts of 6G usage scenarios. Nevertheless, in many cases localization requires extra equipment, which interferes with communications systems, while also requiring additional resources. On the other hand, high frequency and highly directional communications offer a new framework of improved resolution capabilities in the angular and range domains. The implementation of integrated sensing and communications is being explored to unify the sensing and communications systems and promote a communicate-to-sense approach. To this end, a localization algorithm is presented that utilizes beam-forming and the emerging beam-focusing technique, to estimate the location of the receiver. The algorithm can be implemented with large antenna arrays, and large intelligent surfaces. The performance of the algorithm for static and mobile users is evaluated through Monte-Carlo simulations. The results are presented with the empirical CDF for both static and mobile users, and the probability of successful estimation for static users.