I am working on asp.net mvc 4 web application wherein i have functionality to upload files to a machine connected in LAN (network). This works fine. Also i have functionality to download the files to local machine that are being uploaded on file server machine. For this, i have created a website and virtual directory on IIS on file server machine and given its path in web.config file as-
<appSettings>
<add key ="DownloadUrl" value="http://192.168.1.9:85/" />
</appSettings>
but whenever, the machine is restarted or internet connection is restarted, the ip address changes and i have to update it in web.config file always. Is there any permanent solution for this?
I hope you get my question. Any help is appreciated! Thanks in advance!