Port forwarding allows the requests that come to a specific port on your router to be forwarded to a specific port on a computer on your network.
To be able to access files remotely, you should have a service running on that computer to which you forward the traffic to. There are a few protocols that help accessing files this way:
- FTP/SFTP
- SMB
- HTTP
- LDAP
Etc. So you need to find a server software for any of these protocols and run it the computer where you want to host your files.
PS: Having answered your question, I would not recommend doing this because any software you install would have vulnerabilities (that might be discovered later if not now), and you will have to be aware of all such and keep the software up to date. Instead it would be much safer to use a cloud service to store your files, in which case they would take care of security on an everyday basis.
Having said that, both cloud services and any software you install on your computer, both are prone to "Zero-Day Vulnerabilities" (Vulnerabilites which exist in the software that aren't reported/identified to/by the developers, instead exploited by a malicious attacker).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…