Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Share files and internet connection between 10.4 and XP Network
A problem I ran into while trying to connect a simple network of a Mac running OS X 10.4 to a PC with Windows XP via a crossover cable was that if I wanted to share my dial-up internet connection from the Mac to the PC, I had to enable DHCP on both machines. While this is great in concept, I found that the machines would not agree with each other, and assigned different subnet masks and IP address ranges to each other.

This meant I could not share files between the computers while DHCP was enabled. So here is my solution:
  1. Set the IP address and subnet mask on all computers to DHCP, except for the Mac that will be sharing the internet connection. Make sure to note which subnet mask and IP address range is assigned to these computers.
  2. Configure the Mac connecting directly to the internet to use "DHCP with a manual address" in the network preference pane, and give it an address in the same range as the rest of the computers in the network.
  3. Apply the changes -- after a few seconds, the Mac should assign the correct subnet mask. I'm not sure whether it is necessary to restart internet and file sharing or not.
File and internet sharing should now work correctly. The only problem I have encountered is that I cannot browse shared folders on the network in the Finder from the Mac with the internet connection -- I have to know the address of each shared folder and mount each one manually using Go -> Connect to server. So I have just added favourites to all the shared folders on the network to the "connect to server" window. Obviously, this may not be practical if the network is large with a large number of shared folders.
    •    
  • Currently 3.33 / 5
  You rated: 4 / 5 (3 votes cast)
 
[18,671 views]  

Share files and internet connection between 10.4 and XP | 16 comments | Create New Account
Click here to return to the 'Share files and internet connection between 10.4 and XP' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Share files and internet connection between 10.4 and XP
Authored by: zpjet on Oct 10, '05 07:22:19AM
on new generation macs, there's no need for the crossover cable. it does it itself. but since when? my ibook "early 2002" knew it, but i've never tried it on blueberry imac... anybody?

[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: jcbeckman on Oct 10, '05 07:32:03AM
Check here for the list.

[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: zpjet on Oct 16, '05 07:28:03AM

thanks mate!



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: gothgod on Oct 10, '05 11:46:33AM

That is a powerbook/ibook only thing. Don't believe any stationary mac does that. But since when? No idea.



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: gothgod on Oct 10, '05 11:48:29AM

Yea, I was wrong.



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: _merlin on Oct 10, '05 07:39:06PM
The link-local address allocation is the correct behaviour. All modern operating systems (Mac OS 8.5 and later, Windows 98 and later, some Linuxen) will automatically allocate IP addresses in the 196.254.0.0/16 subnet in the absence of a DHCP server. See RFC 3927.

[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: taxi on Oct 10, '05 07:52:10AM

OSX seems to assign mental IP addresses if it can't find the DHCP server. I'm not sure if there's one running on it by default, but if my NSLU2 running a DHCP server is off, the Mac gives itself an address that is (IIRC) not necessarily inside the valid private IP address range.

If you are only connecting a pair of computers, why not go for Static IP? It means transferring the DNS servers and so on across, but it's much simpler.



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: DistantThunder on Nov 16, '06 08:18:08PM

What do you mean by "transferring the DNS servers and so on across"?



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: CoolerQ on Oct 10, '05 09:19:59AM

This seems entirely unnecessary. When you start Internet Sharing on your mac, your mac will launch a DHCP server. Then the rest of your computers (XP or not) will use DHCP and get an IP address in the range that internet sharing is offering. You shouldn't have to touch the network settings on your mac.



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: klatt on Oct 10, '05 08:55:10PM

I agree. I've done this many times without having to do what the hint suggests.

Infact the hint seems like it is trying to go AGAINST DHCP....

Doesn't make sense to me at all...



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: Spartacus on Oct 10, '05 10:05:51AM
There's Bonjour for Windows (link at bottom of right hand column) that could potentially make things easier.

[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: zpjet on Oct 16, '05 07:35:03AM

from the same page :)

"The Bonjour Setup Wizard makes setting up a printer under Windows as easy as Mac OS X (we can't make it as beautiful, unfortunately)."



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: unimatrixzxero on Oct 11, '05 03:30:36AM

It pretty much sounds to me like you've got something mixed up.
If you activate Internet Sharing on Mac OS X it will add a rule to your firewall and start a DHCP server. The rule in the firewall enables IP-forwarding. So other computers (doesn't matter if XP, Mac, or Linux) can use the connection to reach distant hosts(outside your network i.e. internet). If you wish you can type [code]ifconfig[/code] in the terminal and you should see that it creates a new address for your network interface regardless of weather you have given it an ip address before or not. Usually it uses 192.168.2.1, wich is what your other computers should get and use as a default gateway( if they have "Get address by DHCP" activated).

[/rant] :)



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: BohrMe on Oct 11, '05 07:56:55AM

How can I disable this behavior? I have a separate computer that handles all DHCP services.



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: DistantThunder on Nov 16, '06 08:36:54PM

I am trying to get this to work on my system. I am trying to share a dial-up connection on my PowerBook with a Dell running XP over ethernet.

What I have in Network settings on my Mac (all manual settings):
IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0
Router: (blank or 192.168.2.1—same results either way)
DNS Servers: blank

TCP/IP Properties on my Dell:
- Obtain an IP address automatically
- Obtain DNS server address automatically
which automatically yields:
Address Type: Assigned by DHCP
IP Address: 192.168.2.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.2.1
DHCP Server: 192.168.2.1
DNS Server: 192.168.2.1

Mac firewall is temporarily OFF

It all looks right to me ... but it doesn't work. The Mac's internet access works fine, of course. But on the Windows computer nothing will open in a browser. If I ping, for example, apple.com I get:

Pinging apple.com [17.254.3.183] with 32 bytes of data:
Request timed out. (repeats)

From the ping results, it appears that somehow the DNS name is getting resolved into an IP address, but that's as far as it gets for the Windows machine. Typing an IP address into the Windows browser brings up nothing but an error (cannot find server). Other interesting facts: File networking works both ways; I can access both computer's shares from both computers. From the Windows computer I can ping the Mac, but if I try to ping itself (192.168.2.2) it doesn't work. On the Mac I can ping both the Windows computer and the Mac (192.168.2.1) successfully.

I had previously set this up the other way around: the Windows computer was sharing its dial-up connection with the Mac over ethernet. And perversely that setup was a cakewalk. It worked like a charm and never gave me any trouble. But now my Windows modem has apparently died, and so I thought I'd just try it the other way around. No dice. What is wrong?

I am using OS X Tiger 10.4.8, and Windows XP.



[ Reply to This | # ]
Share files and internet connection between 10.4 and XP
Authored by: gerardk81 on Oct 26, '05 10:19:23AM

I'm trying this, but somehow it's not working.
Could someone please help ?

Trying to share my airport internet connection via ethernet with a windows xp PC.

Mac Airport settings:
IP: 192.168.1.70
subnet: 255.255.255.0
Gateway: 192.168.1.1
DNS: 192.168.1.1

Mac ethernet settings:
IP: 192.168.2.70
subnet: 255.255.255.0

PC ethernet settings:
IP 192.168.2.72
subnet: 255.255.255.0
Gateway: 192.168.2.70 (Mac)
DNS: 192.168.2.70 (Mac)

PC's browser simply doesn't find a site.
I don't want to set the PC to DHCP client because I need to define it's address.

thanks for any help



[ Reply to This | # ]