The company I work for is using a Dell OptiPlex Micro PC (running Windows 10 Pro) as a server for some intranet resources (MS SQL Server databases and network licenses for some software). It also hosts a .NET framework web application that I wrote in C# (this web application shows a web page that indicates how many of the software licenses are in use).
Several times now I have arrived at work to find users complaining that they cannot access these resources. Normally, the PC will respond to ping but on those occasions ping fails, and I cannot access the license status web page using the computer name (let's call it 'MY-SERVER'). The Remote Desktop Connection (RDC) to MY-SERVER does not work either, it fails with the error message “Remote Desktop can't find the computer "MY-SERVER". This might mean that "MY-SERVER" does not belong to the specified network. Verify the computer name and domain that you are trying to connect to.”
Before when this has happened, I have had to get the server room unlocked and carry a monitor, keyboard and mouse down there to log in and fix the problem. Today I discovered that RDC will work if I use the IP address to connect instead of the computer name. Entering the IP address in the web browser works too (brings up the license status web page as it should), but when I try to ping the IP address from my PC (Windows 7) it fails (I get 'Request timed out.' four times).
To fix the problem, I open Network Connections, then the properties of the Ethernet adapter and finally the IPv4 properties. I then change the settings (previously from static IP address to automatic, today just from one static IP to another) and click OK to close the two dialogs. I think that fixes it, but I then open the two dialogs again to restore the static IP address to the one it is supposed to have and click OK twice again to save the changes. Then it all works.
I think the problem appears when the computer reboots; although it could be Windows Update related since I almost never tell the PC to reboot so the only reason it would reboot is because Windows Update automatically initiated a reboot.
I don't want to have to go through all that every time Microsoft releases an update, so is there anything I can do to have the PC still work properly (perhaps by automating the change of IP address and back to happen on every boot) when it starts up?