After I visit my Drupal site via a URL like world wide web.example.com, it shows properly, however when I attempt to go to with the IP it is going towards the setting.php file and asks me to put it together from the beginning.

I have been focusing on this 2 days, but cannot find any solution. I'd be very grateful for those who have any suggestions.

Copy the configurations.php file from sites/example.com towards the default folder. It's the default fold which will control what configurations can be used for ip sites.N