• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSHost name and address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: simulating a sheet?
  • Next by Date: Re: write to the console
  • Previous by thread: Re: simulating a sheet?
  • Next by thread: About Menu Extras in OSX 10.1.
  • Index(es):
    • Date
    • Thread