Solved

Log on FTP From Local Machine

Posted on 2016-11-17
6
75 Views
Last Modified: 2016-11-18
I had this question after viewing Allow Local User to Log On FTP.

More specifically, now that works and local user can log on, the developer has written a program that does several things. New problem is that when the program is running on a dev box it works, but when it runs on the server that is hosting FTP, it fails. Server connects and then fails with "connection closed by remote host".

I tried this myself running a command prompt on the server. Same problem, connection closes as soon as it opens. The odd thing is I am sure I tried this before when working on my previous question.

The only thing that I found works is if you log on using the IP address. If you log on by the server name (short or FQDN) or localmachine, it fails. However the goal is to make the program portable, so specifying the IP address is not the best way to do it.

Thanks!
0
Comment
Question by:Brian B
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 28

Expert Comment

by:Dan McFadden
ID: 41892565
1. Have you compared the configuration of the DEV FTP site and the other location's site?
2. Is the Windows Firewall on?
3. How is the FTP site binding setup?  Can you post a screenshot?
4. Is the FTP site using a dedicated AppPool?
4a.  How is the AppPool setup?
5. Are there any access rules on what IP addresses are allow to connect?  
5a. Look in the FTP IP Address and Domain Restrictions feature if installed. Check the feature settings for this item.
5b. Is the default access for unspecified clients setting set to Allow or Deny?
6. logging enabled on the site?

Dan
0
 
LVL 24

Author Comment

by:Brian B
ID: 41892894
Thanks for the response, maybe I can shorten the list of questions a bit by clarifying a few things:

The dev box I mentioned is only running the program, it is still talking to the same server. Only when the program is running locally on the server it fails.
On the server if I run FTP and "open <servername>" it returns a message "connection closed by remote host". If I do "open 192.168.0.1" (the IP of the server), it works and gives a prompt to log on.
I did try it with the firewall off just to be sure and it didn't make any difference.
I also tried another FTP server at another site and it has the same issue (although it is 2008 R2).
Everything is set up at default except for using domain authentication.

I will gather the information later, but does any of that eliminate some of your questions?
0
 
LVL 28

Expert Comment

by:Dan McFadden
ID: 41892916
Does the IP Address of the server match the host name in DNS?  What are the results when you run the following commands?

1. on the server with issue:  open command prompt
2. type:  nslookup <ServerName>
3. type:  nslookup <IPOfTheServer>

Also, have you tried FTP'ing using the FQDN of the server?  FQDN = servername.domain.extension.  For example:  ftp.microsoft.com, where "ftp" is the servername of the FTP server.

Dan
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 24

Author Comment

by:Brian B
ID: 41892952
Yes, the IP address is registered correctly. Using FQDN or short name both fail. Only using the IP address works.

Again, this is all when running FTP directly on the server hosting it. Accessing from another system works all ways.
0
 
LVL 28

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 41893006
Do you have a DNS CNAME in place?

I have an FTP Site that exhibits the same symptoms.  The IP Address works, the server FQDN drops the connection.  But if I use the DNS Alias that my end-users use, it works fine locally.

Dan
0
 
LVL 24

Author Closing Comment

by:Brian B
ID: 41893112
Yes, creating a CNAME pointing to the FQDN works with local logon. Gives us the best portability as well if the FTP ever moves.
Thanks!
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question