First, setup the network adapter of your VM Win95 to "Bridged adapter".
Then the simplest solutions are either:
- Using FTP: Use ftp.exe (available in command line through cmd.exe in Win 95) to get and put data to a remote FTP server. You can install FileZilla on your Windows 11 machine to create a simple server.
- Using SMB: Or create a shared folder on your Windows 11 host, and assuming your Windows 11 host has the IP 192.168.1.17, you can connect to it using the command [net use \\192.168.1.17\YourShare]
I would use the FTP solution as SMB might have minor compatibility problems on such a wide gap of versions