Re: NSHost and the IP addresses ...
Re: NSHost and the IP addresses ...
- Subject: Re: NSHost and the IP addresses ...
- From: Gareth White <email@hidden>
- Date: Fri, 28 Jun 2002 02:36:46 +0800
>
So, as I see it, this is not a problem that you, as a user of the
>
libcurl API, should have to bother with. I mean, finding the "correct"
>
address for the port command might not be a trivial task even if you
>
successfully find all the addresses of the machine. Which one should you
>
choose?
There may not even be a correct address to choose. e.g. Right now I'm on a
LAN and my IP address is 192.168.1.7. If an FTP server tries to connect to
that, it's obviously not going to work. At worst, it's a security risk.
In an ideal world, the server would just ignore the IP address the client
sends with the PORT command, and just use the remote address of its control
socket. Similarly, in an ideal world, FTP clients would ignore the IP
address the server sends with a PASV command, and just use the remote
address of their control socket. Then there'd be no need for using PORT
anyway. But unfortunately this isn't an ideal world :)
Hope that helps,
Gareth
_______________________________________________
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.