The issue is not the environment, well not entirely, but if you are going to be using essentially the same environment, the issue then becomes the domain name itself. You will need to change the config.php file to reflect the new IP and inside the database there are a number of places where the IP is mentioned. I have never used it, but I understand there is a script available that will update the database when run, to show a new IP. I am not sure where it is, you may have to search the Modules and Plugins area, and I seem to recall it being talked about in conjunction with phpMyAdmin. This is not an uncommon thing so I am surprised there isn't a step by step guide in Moodle Docs about it..