title: Dual Base URL in Moodle
body: <p>I have installed the XAMPP and Moodle 2.5 inside it.</p>
  
  <p>Along side, I've also installed No-ip client to convert this to a webserver.</p>
  
  <p>Now my question is, I woud like to have this server reacheble from my intranet and from outside.</p>
  
  <p>My <code>config.php</code> file have base url like:</p>
  
  <pre><code>$CFG-&gt;wwwroot   = 'http://172.16.1.1/exam';
  $CFG-&gt;dataroot  = 'H:\\xampp\\moodledata';
  $CFG-&gt;admin     = 'admin';
  </code></pre>
  
  <p>But not limited to local ip address, I want to use it as webserver to access it from internet. Please suggest me how to set the base url to use it from internet and also from my intranet.</p>