Re: NSHost and the IP addresses ...
Re: NSHost and the IP addresses ...
- Subject: Re: NSHost and the IP addresses ...
- From: Malte Tancred <email@hidden>
- Date: Thu, 27 Jun 2002 12:02:56 +0200
On thursday, june 27, 2002, at 11:47 , Guido Neitzer wrote:
Hi.
I have a problem with NSHost. On one machine in our network the method:
[[NSHost currentHost] addresses];
always returns 127.0.0.1 - but the box HAS a fixed IP. So, what is
the best way to get the IP-Address of the box? I need it to create a
port command for an ftp-client.
Are you sure the array returned doesn't contain more addresses than
127.0.0.1?
/m
_______________________________________________
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.