LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2017, 11:17 PM   #1
firejuggler86
LQ Newbie
 
Registered: Feb 2016
Posts: 8

Rep: Reputation: Disabled
"Name resolution failure"-- but already using IP address, there is no name to resolve


Hello,

I am trying to connect to an FTP server that I am running from another device on my local network. This server is configured to listen for connections on port 2221 instead of the default 21. Trying to connect with

produces the following output:

Quote:
ftp: ftp://192.168.1.2:2221: Temporary failure in name resolution
(note: i get the same result if i omit the "ftp://")

If I try to ping 192.168.1.2:2221 I get the output "ping: unknown host 192.168.1.2:2221"

I'm fairly sure I have the syntax wrong, somehow, but the ftp manpages contain no examples whatsoever of the proper syntax.

Any help would be much appreciated..thanks!

Please note....I acknowledge I may not be correct regarding this issue being caused by incorrect syntax, but I strongly suspect that it is, and I am not going to post logs for an issue having to do with typing the wrong syntax for a command. If that is not the case, we'll go from there. Thanks.
 
Old 05-14-2017, 03:12 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,890

Rep: Reputation: Disabled
The ftp command doesn't accept the ":<number>" syntax for specifying an alternative port number, so it thinks the address might be a hostname instead. The connect syntax is ftp <hostname> [<port>] (the port number should simply be the next parameter following the hostname or IP address).

As for the ping command, specifying a port name makes no sense at all as no ports are involved when sending or receiving ICMP packets.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-add doesn't resolve "Agent admitted failure to sign using the key." jcope Linux - Newbie 1 06-21-2014 03:01 AM
wget - "Temporary failure in name resolution" connnor Linux - Newbie 3 08-09-2012 04:20 AM
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 04:29 AM
Problems with wget... "Temporary failure in name resolution" beantier Linux - Newbie 1 04-19-2008 04:49 AM
"getaddrinfo failed: Temporary failure in name resolution" SammyK Linux - Networking 3 03-09-2005 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration