[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Log on FTP From Local Machine

Posted on 2016-11-17
6
Medium Priority
?
98 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 29

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 25

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 29

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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 25

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 29

Accepted Solution

by:
Dan McFadden earned 2000 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 25

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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

650 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