title: How to get host server IP address in xml file?
body: <p>Following is the xml file:</p>
  
  <p>links.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!-- Edited by XMLSpy --&gt;
  &lt;pages&gt;
  
  &lt;link&gt;
  &lt;title&gt;Advanced&lt;/title&gt;
  &lt;url&gt;http://{192.168.44.128}/advanced.php&lt;/url&gt;
  &lt;/link&gt;
  
  &lt;/pages&gt;
  </code></pre>
  
  <p>In the above code {192.168.44.128}=192.168.44.128</p>
  
  <p>In the place of 192.168.44.128 I want to replace it with current IP address of the server. The IP address of the server is dynamic, so the above code only works for one IP ie. 192.168.44.128. Therefore how to get host server IP address in xml file and use it in the url tag as shown above?</p>
  
  <p>If this is not possible please suggest me an answer how to get the server IP address and use it in the url tag instead of directly entering the IP address in the url tag.</p>