Looking for help with running a network share drive from a remote server

I’m looking to set up a network share on remote Ubuntu server to my windows machine and can’t seem to find a way of doing this I’ve tried sand bar and the built-in windows tools with no success
any help would be greatly appreciated I’ve already spent a few hours on this.

You would typically set up a Samba server.

There’s tons of these tutorials on YouTube.

You want to run smb on the server and mount the resources on your windows pc via the internet. Did I understand correctly?

If so, then run smb on a Linux server using one of the many tutorials available on the internet.
When it comes to letting smb network traffic over the internet, it is not the best idea, though possible. However, I would definitely recommend wrapping this network traffic in some kind of tunnel, even vpn.
In this case you will need the openvpn / wireguard daemon. Or you can go to ZeroTier.

If you don’t feel strong about linux then you can try to install Openmediavault 5 and use smb and vpn via webgui. Omv itself should not cause any extreme anomalies in the context of server operation. You can use omv in the virtualbox if the host is ubuntu.

PS
If I misunderstood, I apologize, the lack of sleep is doing its job …