• 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
Re: NSConnection hostname
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSConnection hostname


  • Subject: Re: NSConnection hostname
  • From: "Rafael K. Kobylinski" <email@hidden>
  • Date: Wed, 20 Feb 2002 22:50:23 +0100

The problem now is that I need to connect to a computer other than the localHost, so I need a way to search for computers on the local network, that have an IP address but no hostname.

Could someone tell me how I go about searching for a DO server on a network,
and then using its IP address (since there are no host names) to make an NSConnection?

Search the archives of cocoa-dev and macosx-dev. There has been a lot of discussion about this issue and even sample code posted. You will have to create a NSConnection with a NSSocketPort and specify an IP address and a port number for both the server and the client.

Take a look at the last part of the following (there is a typo in one of the method names, but otherwise it worked for me):
http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000038.php



--
Rafael K. Kobylinski Email: email@hidden
Institut f|r Informatik Tel. : ++ 49 89 289 22391
Technische Universitdt M|nchen Cell.: ++ 49 177 7 495020
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSConnection hostname
      • From: Andreas Doerr <email@hidden>
References: 
 >NSConnection hostname (From: Drew Cunningham <email@hidden>)

  • Prev by Date: Re: NSLayoutManager question
  • Next by Date: Re: Registering Defaults
  • Previous by thread: NSConnection hostname
  • Next by thread: Re: NSConnection hostname
  • Index(es):
    • Date
    • Thread