The underwater acoustic network is the type of network which is deployed under the deep sea to sense ocean conditions like pressure etc. Due to the presence of limited bandwidth, higher multi-path, higher fading, huge time-variations as well as Doppler shifts, it is difficult to perform high-speed communication within underwater acoustic channels. Within the sea waters, the propagation of electromagnetic waves is very poor. Originally for the terrestrial wired and wireless channels, the communication techniques were designed. Thus, in order to make them appropriate for underwater channels, there is a need to modify these techniques. In the previous research, the fry fly algorithm is applied for the node localization. In the fry fly algorithm the optimal value is calculated for the node localization. In this research work, distance based technique is applied for the node localization. The proposed and existing algorithms are implemented in MATLAB. The simulation results show that proposed algorithm performs well in terms of certain parameters.