if you have a network share that you access often, instead of having to type the IP in the address all the time, you can add it to the hosts file in %windir%\System32\drivers\etc\ like so…
…then for every time you type \\myserver in windows explorer window, it’d be the same as typing \\192.168.1.5
days, months, years go by and now you can’t access the shared folder via it’s IP \\192.168.1.5. You may still be able to access it via \\myserver but not via ip.
Open Credential Manager in Control Panel and look for the IP address under Windows Credentials (it would have a username as XXXX\SHAREUSER); click “Remove from vault”