Jump to content


Photo

PortIP setting


  • Please log in to reply
1 reply to this topic

#1 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 24 February 2006 - 10:31 AM

Hi, we're converting from Indy 10 to this component. In Indy 10 they had a property called ExternalIP. The help file on it says:

Specifies the IP address used when the client sends the FTP PORT or EPRT commands behind a NAT-based firewall.


You could then specify the range of ports to use. Is this the same as the PortIP property in Smart FTP? If not, can you tell me which one is? Thanks

#2 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 24 February 2006 - 02:10 PM

I don't know Indy 10 but from what information you posted the PortIP propery in the SmartFTP FTP Library seems to be the same as the ExternalIP property in Indy 10. You need to set the PortMode property to PortModeManual before the IP in the PortIP property is used.

To limit the ports used for a PORT/EPRT command please see the IFTPPortPool Interface. You can set the range with the SetPortRange method.

Regards,
-Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users