Recent

Author Topic: [SOLVED] IdFTP cannot use host name.(Linux)  (Read 3785 times)

deepla

  • New Member
  • *
  • Posts: 10
[SOLVED] IdFTP cannot use host name.(Linux)
« on: June 27, 2021, 01:30:34 pm »
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) 
« Last Edit: June 28, 2021, 07:23:34 pm by deepla »

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1314
    • Lebeau Software
Re: IdFTP cannot use host name.(Linux)
« Reply #1 on: June 28, 2021, 05:57:07 pm »
When 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?

the 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

The IP address is fine for IdFTP.Username.

Again, are you really putting this into the Username property, or the Host property?

This 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?
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

deepla

  • New Member
  • *
  • Posts: 10
Re: IdFTP cannot use host name.(Linux)
« Reply #2 on: June 28, 2021, 07:22:15 pm »
This was my mistake.
It was IdFTP1.Host instead of IdFTP1.Username.

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

I understood on these homepages. Thank you for telling me.

 

TinyPortal © 2005-2018