Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible to share one IP address between two Apple laptops (both running Snow Leopard in my case) so that both devices can connect to the internet?

share|improve this question

migrated from stackoverflow.com Mar 31 '11 at 13:06

This question came from our site for professional and enthusiast programmers.

    
Belongs on superuser.com –  Paul R Mar 31 '11 at 10:35
    
Linksys sells Network Address Translation routers for around $60 USD. It's amazing how much computing and networking power they can shove in a cheap plastic box these days. –  sarnold Mar 31 '11 at 10:36
    
Yeah or better still serverfault.com –  Gary Green Mar 31 '11 at 10:36
    
@Gary Green This is a home computing question, not a serious server question for serverfault. –  rjmunro Mar 31 '11 at 20:26
add comment

4 Answers 4

Yes, but with caveats.

MacOS X has an "internet sharing" mode in the "Sharing" control panel, but you have to use different network interfaces for the "internet facing" and "internal facing" sides of your network.

So if you're connected to the Internet over your ethernet port, you can share your connection to WiFi clients. What you can't do is connect and share over the same port.

share|improve this answer
    
I have one laptop connected to the internet via ethernet and does internet sharing via airport. However, another one cannot connect to the internet (In the network system preference, it warns that it cannot find IP address). It might be because I only have assigned one IP address? –  knoguchi Mar 31 '11 at 10:50
add comment

i think it's better to get a router than use internet sharing mainly because the mac sharing the internet connection will need to remain powered on when your second mac needs the internet. =)

share|improve this answer
add comment

Yes - either use a router or turn on "Internet Sharing" on one of the laptops (effectively the same thing as using a router).

System Preferences => Sharing => Internet Sharing

share|improve this answer
    
Thanks for the reply! I have tried internet sharing using airport with one laptop connected to the internet via ethernet but another one seems to be not able to find IP address. I thought this might be because I only have one IP address assigned. –  knoguchi Mar 31 '11 at 10:39
add comment

In order for computers to talk on the same network, they must have different IP addresses. However, it is possible to have two or more computers share an internet connection by having them on a private network separate from the internet, then routing their data through a gateway that is able to be on more than one network. The gateway usually uses a system called "Network Address Translation" or NAT to allow the computers on the private network to operate as if they are on the internet.

This is what most home routers do. They provide a private network and a NAT gateway, often combined with a wireless access point and and ADSL modem.

Internet Sharing (in System Preferences => Sharing) allows a Mac to act as this gateway. It will set up any unused network interface with a private IP address and allocate private IP addresses to any other computers you put on that network. It will then route data from computers on that network to the internet, performing NAT so that all the traffic on the internet seems to be coming from it, and not the other computers.

share|improve this answer
add comment

Your Answer

 
discard

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