This is pretty easy, It looks harder then it really is.
Step 1. make sure both machines are in the same workgroup, name doesn't matter just as long as they match.
https://www.linksys.com/us/support-article?ar … leNum=140590#a1
Step 2. Log onto both PC's using the same username and password, You do want a password even if it is just 1 character.
You don't have to do this but by default windows will use the logged in password to access the other PC. if these match then your in right away. If not you get prompted for login details.
Vista and later get a bit funny with blank passwords.
Step 3. Enable SMBv1 on Windows 10 PC
https://www.tachytelic.net/2019/09/windows-10-enable-smb1
Step 4. Right click a folder and select Share, the permissions are self explanatory .
That's all the steps that are required to have file sharing enabled between the 2 PC's. Windows can take a while to find other PC's on the network. Quickest method in this case is simply enter the IP and share name in the explorer address bar or start run eg
\\192.168.1.1\Shared
Personally I just let DHCP do everything and don't worry about the "no connection to the internet" The router blocks alot of traffic as does Windows inbuilt firewall. It's not perfect but a retro PC that spends more time off then on I don't see as a big risk but if you really are concerned setting a static IP is the easiest option.
https://portforward.com/networking/static-xp.htm
IP address: check your router and see what it's DHCP table is usually its something like 192.168.1.1 - 192.168.1.200.
The 192.168.1 (or whatever yours is) you want to keep the same, that final number is that PC's individual number. You want something that falls outside the table but not the routers address, not 0 or not 256 or above.
You can do what I do and set the DHCP table to only hand out IP addresses 100 - 200 which is still a lot for a home network and easy to remember what not to use when assigning static IP's
Anything currently on your network will auto update usually in the space of a few days without he user noticing a thing.
Subnet Mask: is exactly the same as the other PC's
Default Gateway: Leave this blank this really means Gateway to the internet
DNS: you can set this to the router or leave blank, In theory this would convert your IP addresses into computer names so you could enter "\\XPPC\shared" into the address bar rather then the IP, reality is you'll get used to using the IP address after a bit so it's not really needed