In the studies on an berthing control of ship, an artificial neural network (ANN) model is commonly employed as the main controller to control the rudder and the propeller. The existing ANN controllers that use the parameters consisting of the ship position and the ship heading as inputs cannot be applied to control automatically the ship into berth in different ports. To deal with this problem, the parameters, such as relative bearing and distance from ship to berth calculated by radar can be used as inputs for the controller. However, the calculation of these factors is not accurate because some errors arise on using radar for berthing process. This leads to the lack of confidence in ship berthing system using the parameters determined by radar. In this research, the neural network based-automatic berthing system is developed for ship by using the parameters which are measured by distance measurement system. By this proposed system, the ship is brought automatically into berth in different ports without retraining the neural network. In addition, this system guarantees that the parameters used for inputs of the neural network is measured exactly and continually. To validate the proposed algorithm, numerical simulations are carried out to two imaginary ports and a real port, and result showed the good performance of the proposed system for automatic ship berthing.