0

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!

4

1 回答 1

0

我在一些办公室更改 IP 地址时也遇到了问题,我使用 DynDNS 来解决它。我只是用动态地址替换IP地址。奇迹般有效!

于 2013-06-12T05:57:02.603 回答