The simple - and rather obvious - solution is this: don't use IP addresses to establish your shares, use the MachineName instead:
\\MYOTHERPC\sharefolder
Since most DHCP controllers use dynamic IP addressing by default, relying on a specific IP address is going to cause problems like this quite often.