Following is the xml file:
links.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited by XMLSpy -->
<pages>
<link>
<title>Advanced</title>
<url>http://ift.tt/1sgDQHc;
</link>
</pages>
In the above code {192.168.44.128}=192.168.44.128
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?
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.
No comments:
Post a Comment