My home iMac is connected directly to my modem via ethernet. File Sharing is turned on.
If I turn on Internet Sharing and connect my Macbook to the resulting wifi network, I can access files on my iMac via
Connect to Server →
smb://<my iMac's internal IP>
Since my iMac is connected directly to my modem, I should be able to use the same process to connect from work. I open Finder and type
smb://<my home's external IP> Unfortunately, this leads to an error message ("There was a problem connecting to the server.")
Interestingly, my iMac also has screen sharing enabled. Unlike SMB, this works properly from both home and work.
How can I make SMB work over WAN?
Edit: Despite some security concerns that were raised in the comments, I would still like to know how to do this! I'm actively researching possible risks, but haven't found anything specific, and it's out of scope on this site. I want this to work natively in Finder.