Re: HowTo get computer name from IP
Re: HowTo get computer name from IP
- Subject: Re: HowTo get computer name from IP
- From: Lloyd Dupont <email@hidden>
- Date: Wed, 18 Jun 2003 15:42:13 +1000
[foo name] gives me the name of the service, NOT the name of the
computer (and I display in a table view:
- computer name
- service 'state')
and addresses gives me a list of struct sockaddr. (holding IP, and not
host name)
still need the friendly computer name.
one I could ping, or use with NSSocketPort as the user is able to edit
the list manually to monitor the services running on computer without
rendezvous .....
On Wednesday, June 18, 2003, at 03:03 PM, Jeff Harrell wrote:
Why don't use you the name attribute of the NSNetService instance?
One of the assumptions about Rendezvous is that it shouldn't matter to
the user where a service is located; things like the IP address (and,
by extension, hostname) and the port number are abstracted away. The
name property is intended to be a human-readable identifier.
I don't know anything about what you're doing, but in the absence of
any other information [foo name] (for some NSNetService instance foo)
is probably what you ought to use.
On Tuesday, June 17, 2003, at 11:34 PM, Lloyd Dupont wrote:
I get an IP address (from NSNetServiceBrowswer) of a remote computer.
I try to get a friendly name to display to the user.
I'm using NSHost for that, and didn't deliver me any name !
although I do my test on localhost !
I don't understand, if I 'ping ihookIT.local', (the rendezvous name)
it work, even from a remote computer. why NSHost hasn't a clue ?
Anyway could you suggest me an other way to get a host name from an
IP ?
_______________________________________________
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.
--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.
_______________________________________________
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.