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 a WiFi connection and I would like to share it through my WiFi card to computers. For some security reason, it seems that only one device can access the WiFi connection directly.

This is why I want to use the first mac computer as server.

Unfortunately, I don't have any Airport Express.

share|improve this question
    
You cannot be connected to two wifis with only one interface. If you want the same machine to connect to your real wifi network and create or join an ad-hoc network with your other machines: This will not work. –  Daniel Beck Jan 16 '11 at 17:48
    
@Daniel Beck is correct, to share over Wi-Fi you would need to be connected to your router using an ethernet cable and then set up a new wi-fi connection for sharing. –  Jay_Booney Jan 16 '11 at 19:20
    
You can also share the WiFi connection via Firewire, probably not helpful in this situation but good to know. –  penguirl Jan 17 '11 at 2:23
1  
@Daniel Beck and @Jay_Booney are not correct – otherwise, how could Connectify on Win7 share a Wifi connection [1,2]? @Arkan: Unfortunately I don't have a solution for you for Mac (was searching for one myself) but was compelled to correct the above comments. [1] connectify.me [2] techrepublic.com/blog/networking/… –  orangechicken May 11 '11 at 3:52
    
@orangechicken Connectify works by specifically requiring Windows 7 internals (no support for earlier Windows versions) and needing to support the network hardware to be able to create an AP, via the article you linked. As this question is specifically for OS X, my assessment still holds. –  Daniel Beck May 11 '11 at 5:29

3 Answers 3

up vote 5 down vote accepted

Unfortunately, you can't. You can't take your connection from WiFi and share it to other devices via WiFi. You can think of it as plugging two ethernet cables into one port. It won't work.

You can, however, take your connection from ethernet and share it to devices using WiFi.

share|improve this answer
    
Thanks for your answer. Do you know if it could be possible with the bought of a device ? –  Arkan Jan 17 '11 at 21:36
    
@Arkan: Maybe a Wireless Repeater would do what you need? –  Wuffers Jan 17 '11 at 22:07
1  
@Arkan If this answer worked for you, please accept it so that viewers know you solved the problem. –  daviesgeek Dec 28 '12 at 5:58
    
You can't, provided you only have one NIC. If you would buy a USB Wireless Adapter for example, this should be doable. –  bigbadonk420 May 27 '13 at 14:07
    
Too bad on Apple only a connection can be made. On PC you can create a WiFi hotspot while connecting through WiFi. Some programs do that for you, for example: Connectify. –  Derek 朕會功夫 Jun 4 '13 at 15:22

Try this, it works for me. For example your wifi is en1.

sudo -s
ifconfig en1 x.x.x.1/24 alias
sysctl -w net.inet.ip.forwarding=1
natd -interface en1
ipfw -f flush
ipfw add divert natd all from any to any via en1
ipfw add pass all from any to any

Other devices will connect to the same SSID but you need to use static IP in x.x.x.0/24 range.

share|improve this answer
    
DNS doesn't work through the 'OSX Router' but using Googles open DNS server (8.8.8.8) sorted that. Thanks –  tonycoupland Feb 5 at 8:22
1  
How do I un-do the above once I've issued the commands? –  gman Feb 6 at 8:12

You can't take WiFi connection and share it via your Airport, but if you for some reason cannot plug in an ethernet cable, and you have a second mac (brother's, sister's, friend's) then you can share Internet Connection from WiFi through bluetooth with one computer, and then share Internet Connection from bluetooth through your WiFi network. Again, this only works if you have two macs.

share|improve this answer

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.