cURL / Mailing Lists / curl-library / Single Mail

curl-library

ip address for ftp-port command

From: Guido Neitzer <guido.neitzer_at_pharmaline.de>
Date: Thu, 27 Jun 2002 15:12:25 +0200 (Europe/Berlin)

Hi.

  I have a problem with libcurl (v 7.9.5) on my Mac OS X box. For some
  servers I need to use non-passive ftp, so libcurl has to determine the
  ip address of my box. With '-' it gets 127.0.0.1 - not so nice. I get
  the same result when using [[NSHost currentHost] address] to get the
  ip of this box.

  We have only one system with this behaviour - I think it's a problem
  that this system has no FQDN and no DNS-entry, all other systems have
  this.

  But what can I do? I found a way to get all IP addresses for all
  installed interfaces including the loopback interface - but which
  should I use? Is there any "correct" way to do this?

cug

-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-27