Hi everybody.
My school has a strange firewall configuration (of which i don't have access) and, as a result, accessing moodle with the classical URL
http://cornimoodle.no-ip.org/moodle
fails when ever accessed from the intranet some 50% of the times. Using the internal DNS hasn't solved the issue.
Now, I already had this issue in the past and I sort of remember I solved it by changing the config file along the following line
[IF client IP comes from the intranet]
$CFG->wwwname = "intranet.name.org"
[ELSE]
$CFG->wwwroot = "cornimoodle.no-ip.org"
I know it's not elegant, but it used to work. Now I completely forgot hot to examine the client IP, but I will find it out.
Is there a more elegant solution that might work in this context?