[SOLVED] IdFTP cannot use host name.(Linux) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- deepla · 2021-06-27 11:30 Hello, When I use the host name of the PC on the LAN for IdFTP.Username, the following error occurs and the connection cannot be established. Error resolving host Hostname.local: Error (-1) The IP address is fine for IdFTP.Username. This issue only occurs on Linux, not Windows. Is there a way to use IdFTP with a hostname on LAN in Linux? Lazarus v2.0.12 Indylaz v10.6.2.3802 OS: Lubuntu 18.04.LTS(32bit) ---------------------------------------------------------------------- Remy Lebeau · 2021-06-28 15:57 Quote from: deepla on June 27, 2021, 01:30:34 pmWhen I use the host name of the PC on the LAN for IdFTP.Username Why would you put a host name into the Username property?  Did you mean the Host property instead? Quote from: deepla on June 27, 2021, 01:30:34 pmthe following error occurs and the connection cannot be established. Error resolving host Hostname.local: Error (-1) Note that Linux can have issues resolving .local domains, for instance: Linux getaddrinfo not working with .local domains Can not resolve .local domains internal to my office LAN Quote from: deepla on June 27, 2021, 01:30:34 pmThe IP address is fine for IdFTP.Username. Again, are you really putting this into the Username property, or the Host property? Quote from: deepla on June 27, 2021, 01:30:34 pmThis issue only occurs on Linux, not Windows. Is there a way to use IdFTP with a hostname on LAN in Linux? Can you please provide an actual example of how you are configuring and using TIdFTP? ---------------------------------------------------------------------- deepla · 2021-06-28 17:22 This was my mistake. It was IdFTP1.Host instead of IdFTP1.Username. Quote from: Remy Lebeau on June 28, 2021, 05:57:07 pmNote that Linux can have issues resolving .local domains, for instance: Linux getaddrinfo not working with .local domains Can not resolve .local domains internal to my office LAN I understood on these homepages. Thank you for telling me.