Try going into your router and assigning a different fixed IP address to each device which most routers let you do by device MAC address (usually listed as either “DHCP reservation”, “Static Leases” or “preferred” IP addresses usually in the LAN or DHCP router settings) which is the easiest way to do it, or define static IP addresses to your devices. You will have to disconnect / delete the Windows drive mapping and redefine it for both devices on the new IP addresses.
Best Practise is also to change the System Names as the change didn’t stick @vpeter posted a solution to do it from the command line here
Edit, forgot to say to reboot all devices after you have made the IP changes, including the router and before you remap the shared drives on Windows.