Solved

Log on FTP From Local Machine

Posted on 2016-11-17
6
20 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
  • 3
  • 3
6 Comments
 
LVL 26

Expert Comment

by:Dan McFadden
Comment Utility
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 23

Author Comment

by:Brian B
Comment Utility
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 26

Expert Comment

by:Dan McFadden
Comment Utility
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 23

Author Comment

by:Brian B
Comment Utility
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 26

Accepted Solution

by:
Dan McFadden earned 500 total points
Comment Utility
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 23

Author Closing Comment

by:Brian B
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Resolve DNS query failed errors for Exchange
A procedure for exporting installed hotfix details of remote computers using powershell
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.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now