FTP Connection failure with EAI_NONAME error
While trying to use FileZilla FTP client the other day, I copied in a clients details to the configuration panel, hit connect and was shown the following error:
Status: Resolving address of XYZ Status: Connection attempt failed with "EAI_NONAME - Neither nodename nor servname provided, or not known". Error: Could not connect to server
Now I’ve never even heard of an EAI related error, so this was a bit strange. I assumed the client had provided me with incorrect details, as its quite easy to do. I double checked the other FileZilla options and everything seemed ‘normal’.
To cut a long story short it turns out that EAI_NONAME basically translates in laymans terms to “Server couldn’t be found“. If you’re connecting via IP, make sure the host resolves to it by running “PING hostname” in a Microsoft Windows command prompt for example, or using an online free service.
If you’re connecting via a server hostname, make sure it contains no spelling mistakes or extra spaces.
If you get this error message don’t worry about changing default file paths, username or passwords to experiment. The FTP program can’t find the server, so can’t even get to checking those details.
How to fix Error: Could not connect to server
Hi Ravina. That could be a variety of things unfortunately. Your username or password may be incorrect, or the web address might be wrong. Sounds more like the latter.
Filezilla has a crappy UI.
Don’t forget to add the protocol to the connection url as in:
ftp://ftp.example.com/
Good article. I will be experiencing a few of these issues as well..
Can anybody help plz i am also facing same problem…
Thank for this post Paul. I’ve been thru 4 other sites, trying to understand this error. You’re plain English helped, along with the link to to the online free service