How to access Moodle from any computer in a small LAN or Intranet


by David Delgado - Sunday, 7 September 2003, 8:12 AM

It is easy, but I post this because I know there are some people having problems to get this.
The tipical situation is any computer running Moodle in Windows (tipically a Windows XP) and many
other computers trying to access Moodle in it.

They are having problems to give access to their Moodle in their LAN just because they use the default
"localhost" or "127.0.0.1" as the IP for Moodle and theApache web server.

The IP is the identifier for any computer in the network. "localhost" or "127.0.0.1" is a default IP for any
computer (it means something like "me"). The real IP is the 4 numbers identifying the computer in the
network (it means something like your social security card number). It could be 192.168.0.1, for example.

To make Moodle work in an Intranet or small LAN (Local Area Network), such as a home network of office
network, is a 3 step process:

1) Get the IP of the computer running Moodle inside the LAN. In Windows, you can get this quickly:
"Start Menu" / Run... / command (hit enter and a black command prompt is opened), and then in the
command prompt type ipconfig (hit enter). The IP is the 4 numbers next to "IP address".
For example: 192.168.0.1

2) At the directory where you installed Moodle, edit config.php and set your

$CFG->wwwroot = 'http://IP/moodle';

Post a Comment

0 Comments