NSHost name and address
NSHost name and address
- Subject: NSHost name and address
- From: Lorenzo <email@hidden>
- Date: Thu, 24 Apr 2003 03:29:43 +0200
If I have an Host Rendevouz name like "PBG3RV.local"
[[NSHost hostWithName:@"PBG3RV.local"] address];
returns properly the IP: 1.2.3.5
Fine!
Now I would like to do the opposite
If I have the Host IP address 1.2.3.5
myHost = [NSHost hostWithAddress:@"1.2.3.5"];
myHostName = [myHost name];
returns a NULL NSString myHostName. I supposed it should be "PBG3RV.local".
I checked and myHost is not NULL.
The remote machine is really connected and I can mount volumes.
I tried also the following addresses + ports + volumes unsuccessfully.
@"1.2.3.5:548"
@"afp://@"1.2.3.5"
@"afp://@"1.2.3.5:548"
@"afp://@"1.2.3.5/VolumeName"
@"afp://@"1.2.3.5:548/VolumeName"
So, why [myHost name] is NULL?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.