by Emma Richardson.
You need to set up a domain name that is mapped to from outside (www) and internal network with DNS. Then in config.php change $CFG->wwwroot = 'http://192.168.1.254/moodle' to $CFG->wwwroot='http://yourdomainname.com/moodle.
After doing this, you need to restart apache. Then you will need to run replace.php on your database to update all the references there.
On a side note, to make this work best, you should direct apache to your moodle folder by default, then you will not need the /moodle at the end of your domain name.