Sharing a folder only over a particular network interface

6

Is it possible to set up sharing on just one network card? I want to share a folder or two only on my wired connection, but not my wireless connection.

I couldn't find any resources online to do this, and I'm wondering if there might be some sort of firewall configuration to do this.

12hys

Posted 2011-11-17T00:27:03.253

Reputation: 265

This had to be crossed off my list. Too bad samba is even more of a risk than sharing files across all interfaces and wireless when the goal is to share through a single ethernet link to the other computers. – SDsolar – 2018-06-02T16:01:31.730

If you run Samba on Windows you can limit which IP addresses it listens on: http://www.smithii.com/samba/

– Randolf Richardson – 2011-11-17T00:37:46.380

I would try this, but it's currently not an option. – 12hys – 2011-11-17T01:07:37.243

Answers

8

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.

Patrick Seymour

Posted 2011-11-17T00:27:03.253

Reputation: 7 662

1I just want to point out that this is a drastic solution that doesn't work when one wants to share some folders over one of the network interfaces and some other folders over some other network interface. – HASM – 2014-07-09T17:34:38.143

1But that's not what OP asked. – Patrick Seymour – 2014-07-10T00:23:22.580

This is precisely what I needed to be reminded about. This will allow me to share with other PCs while not worrying as much about the WiFi interface. Thank you from June 2018. – SDsolar – 2018-06-02T16:53:27.780

1You're welcome. Just an old trick from the Dial-Up Networking days of Windows 9x. – Patrick Seymour – 2011-11-17T14:35:13.860