Please check all below steps:
- First off all see that the database is exported to the new server.
- Then transfer the magento root files to the new server.
- In the root folder, change to the new database. You can do this by
going to app/etc/env.php and changing the DB array information.
change the host, dbname, username and password to the new one.
- Then you change you secure and unsecure URLs in the magento DB
core_config_data to the new IP, don't forget the "/" after your IP,
it's required.
- Make the web user owner of the new file ( for apache it's: sudo
chown -R www-data /var/www/magentoroot ). Set the correct file and
folder permissions.
- Finally clear the cache by running bin/magento cache:clean and
bin/magento cache:flush.
If still not load CSS etc then run below all command to regenerate all css/js in pub folder.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin\magento indexer:reindex
php bin/magento cache:clean
I hope it will help for you.