Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two interfaces:

  1. Wifi for the internet
  2. Ethernet for office intranet

When I enable File Sharing, it defaults to share on the first interface. Is it possible to share on the second interface?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

The share is available to all interfaces by default.

While System Preferences will only list one IP address in sharing, the share is available on all interfaces as it is a resource of your machine, accessible to any valid request from either interface.

To test the theory, with AFP sharing ON, go into Finder, Go > Connect to Server... and attempt to connect to:

afp://ip.address.for.interface.1

You should get:

There was a problem connecting to the server "ip.address.for.interface.1". The file server is available on your computer. Access the files locally.

Now try with the IP of your second interface,

afp://ip.address.for.interface.2

Same error.

share|improve this answer
    
I am using SMB for sharing, does that make it difference? –  ohho Nov 11 '11 at 2:12
    
If you're using 10.6 or earlier check out Using multiple network interfaces (NICs) with Samba and Unleash the Power of Samba Under OS X. If 10.7 Samba needs to be installed manually to edit conf: OSX Lion Samba SMB shares –  Ron Casey Nov 11 '11 at 12:09
    
Keep in mind if you setup a custom install of Samba under 10.7 you'll need to turn off SMB sharing in system preferences and create your own shares. In 10.6 and lower follow the directions in the first article to allow sharing over multiple NICs. The second article contains all the information you need to translate the instructions from FreeBSD to OS X. –  Ron Casey Nov 11 '11 at 12:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.