Ftp.hostname readonly



The Ftp.hostname property gets the current hostname string used for connection to the FTP server or nil if connection have been closed.

Example

--! luart-extensions import net local url = "your ftp server address" local ftpclient = net.Ftp(url, "anonymous", "guest") -- outputs ftp hostname print("ftp hostname = "..ftpclient.hostname)