Sharing a folder only over a particular network interface
Open Control Panel, and then Network And Sharing Center. Go to Change Adapter Settings. Right-click the network adapter for which you do not want to share files, and choose Properties. Uncheck File and Printer Sharing. That will disable that service for that network card while leaving it enabled for others.