Solved

Log on FTP From Local Machine

Posted on 2016-11-17
6
61 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 27

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 23

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 27

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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 23

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 27

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 23

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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…
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 …

749 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