Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Warning: Tiger problem with long computer names and non Apple wireless routers

Warning: Tiger problem with long computer names and non Apple wireless routers
Thread Tools
Junior Member
Join Date: Mar 2005
Status: Offline
Reply With Quote
Apr 30, 2005, 12:43 PM
 
I thought this deserved it's own thread...

Right now I've got Panther on the internal drive of my PB and was using a firewire drive to test Tiger. Both worked fine at home with my Airport Express.

Today I come to the local coffeeshop and Panther works fine but Tiger won't get a DHCP address. I could make Tiger work by manually specifying the IP settings but not with DHCP. I found a post here, shortened my computer name and now it works. This looks like a Tiger bug with (some? all?) non Apple wireless routers. They have a DLink 624 at the coffee shop.
     
Forum Regular
Join Date: Sep 2001
Status: Offline
Reply With Quote
Apr 30, 2005, 12:53 PM
 
How long was your name when it didn't work and to what length did you shorten it?
     
DylanG  (op)
Junior Member
Join Date: Mar 2005
Status: Offline
Reply With Quote
Apr 30, 2005, 01:20 PM
 
I changed it from 25 to 17 characters. Both have an apostrophe and embedded spaces.
(Last edited by DylanG; Apr 30, 2005 at 01:30 PM. )
     
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Apr 30, 2005, 01:22 PM
 
This is definately true. I had the same issue with the same solution.
     
DylanG  (op)
Junior Member
Join Date: Mar 2005
Status: Offline
Reply With Quote
Apr 30, 2005, 01:27 PM
 
Yes , it was surferboy's post that gave me the solution
     
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Apr 30, 2005, 01:33 PM
 
Dylan, glad you got it working. Hopefully our struggles will save a little hassle for some others....
     
DylanG  (op)
Junior Member
Join Date: Mar 2005
Status: Offline
Reply With Quote
Apr 30, 2005, 01:51 PM
 
I've determined the maximum length allowed to be 20. I don't know if that is universal or specific to the DLink 624. I scanned the DHCP spec and didn't see any mention of a maximum length for this value. But it appears that Panther truncated this name and Tiger does not.
     
DylanG  (op)
Junior Member
Join Date: Mar 2005
Status: Offline
Reply With Quote
Apr 30, 2005, 07:12 PM
 
I found the appropriate section of the DHCP spec and the client name is a variable length field with no length restriction. This appears to be a bug in the DLink 624. There have been a number of firmware updates for that router that fixed vaguely worded DHCP problems.

My guess is that Apple restricted this length in Panther to avoid what appears to be a somewhat common problem. Perhaps the removing this restriction was an oversight or they felt that they could count on properly function DHCP servers.

I even sniffed the wireless connection while it's renewing DHCP lease and what Apple sends is correct for longer and shorter computer names. I already blew away my Panther install so I can't see what it sends. If anyone has a sniffer like Ethereal installed under Panther I'd be curious to know.
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Apr 30, 2005, 07:38 PM
 
Try to avoid apostrophes and stuff like this. Routers are small computers running Linux or *BSD, and in the Unix world, the apostrophe has a special meaning. Usually short names without spaces are the safe bet.
I don't suffer from insanity, I enjoy every minute of it.
     
DylanG  (op)
Junior Member
Join Date: Mar 2005
Status: Offline
Reply With Quote
Apr 30, 2005, 08:42 PM
 
In general good advice but I've confirmed that the apostrophes and spaces are removed or converted to legal chars for the network name.
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Apr 30, 2005, 09:01 PM
 
Originally Posted by DylanG
In general good advice but I've confirmed that the apostrophes and spaces are removed or converted to legal chars for the network name.
Yes, I know. But this way, you avoid having several versions of your machine's name floating around. (You can check the conversion in the sharing pref pane, it shows you the name your machine has in your network.)
I don't suffer from insanity, I enjoy every minute of it.
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
May 1, 2005, 12:09 AM
 
the fact is, the only legal characters for host names are:

a-z
0-9
and the '-'

everything else, including the '_' are not legal hostname characters per RFC952.

So, any hostname with spaces, apostrophes, and suchlike are just begging for trouble.

Now, if you ask me, the fact that Apple defaults hostnames to those ridiculous strings like:

"Steve Job's Computer" now, that's the real bug as it's not RFC952 compliant!
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:27 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2