« Previous Next »

Thread: How can I connect to ftp7 from remote machine?

Last post 02-12-2009 12:09 AM by wappibz. 14 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (15 items)

Sort Posts:

  • 02-02-2009, 10:34 PM

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    How can I connect to ftp7 from remote machine?

    Hi, I am new to FTP7. I followed the introduction to set FTP site.

    I have a site running good on IIS 7, say www.abc.com. Then I set a ftp on this site, it binds on 127.0.0.1:21, ftp.abc.com.

    Then I set two users, that is Anonymous user and administrator. I can get access from the server machine, by doing the followed: in command prompt, I input: ftp 127.0.0.1, then input "ftp.acb.com|administrator" and its password, I got accessed.

    However, I can not connect the ftp from any remote machine, or on the server machine, if I input like this: ftp ftp.abc.com, it would not work. The information is as followed:
    "connect to www.abc.com.
    220 Microsoft FTP Service
    User(www.abc.com:(none)): administrator
    550-No such host is known.
    Win32 error: No such host is known.
    Error details: Hostname didn't match any configured ftp site."

    Where did I miss?
  • 02-03-2009, 12:15 AM In reply to

    Re: How can I connect to ftp7 from remote machine?

    What exactly are the bindings configured for your FTP site? If you bind only 127.0.0.1 then your external IP address would not work? But I may have misunderstood something

    Jaroslav Dunajsky (MSFT, IIS)
  • 02-03-2009, 7:15 AM In reply to

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    Re: How can I connect to ftp7 from remote machine?

    hi JaroDunajsky, my settings is the followed:

    IP Address: 127.0.0.1;
    Port: 21;
    Virtual Host: ftp.abc.com;
    SSL Certificate: Not Selected;
    Allow SSL;

    FTP Authentication:
    Anonymous Authentication: Enabled, Type Built-In
    Basic Authentication: Enabled, Type Built-In

    FTP Authorization Rules
    Allow administrator, Permissions:Read,Write
    Allow Anonymous Users, Permissions:Read

    ****************************************
    That is all I have done.
    And connect to 127.0.0.1 from server machine itself is all right.
  • 02-03-2009, 12:17 PM In reply to

    Re: How can I connect to ftp7 from remote machine?

    Then just add another binding for the external IP address and you should be good to go

    Jaroslav Dunajsky (MSFT, IIS)
  • 02-04-2009, 3:52 PM In reply to

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    Re: How can I connect to ftp7 from remote machine?

    well... how?

    I bind external IP address to the ftp site. Then configured the Windows Firewall by using the settings of:
    netsh advfirewall firewall add rule name="FTP (non-SSL)" action=allow protocol=TCP dir=in localport=21
    and
    netsh advfirewall set global StatefulFtp enable

    It still does not work... Always tell me 550 error about there is no such host....
  • 02-05-2009, 5:11 AM In reply to

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    Re: How can I connect to ftp7 from remote machine?

    I need help...
  • 02-07-2009, 9:16 AM In reply to

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    Re: How can I connect to ftp7 from remote machine?

    Help...
  • 02-07-2009, 10:15 AM In reply to

    Re: How can I connect to ftp7 from remote machine?

    wappibz:
    Hostname didn't match any configured ftp site.

    Did you check this?  As in do you have any way of resolving the FTP host to 127.0.0.1?  And you do realize that that IP is not availabl;e from off the physical server, correct?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 02-08-2009, 10:23 PM In reply to

    Re: How can I connect to ftp7 from remote machine?

    Hi,

    wappibz:

    User(www.abc.com:(none)): administrator

    You need type the user name as your mentioned early "ftp.acb.com|administrator".

    This issued has been discussed in the thread below, please check it
    Thread: 550 No such host is known
    http://forums.iis.net/t/1147854.aspx

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 02-10-2009, 1:10 PM In reply to

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    Re: How can I connect to ftp7 from remote machine?

    To Leo Tang - MSFT:
    I did type the hostName like "ftp.acb.com|administrator",
    But the result is the same...
    It will work on server machine, but not on any remote machines...
    whether I type the host name or not, it always give me "550 No such host is known."

    To jeff@zina.com:
    I do not quite follow what you were saying... can you tell me more details??

    Thanks for all you advice, but I need more...
  • 02-10-2009, 7:07 PM In reply to

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    Re: How can I connect to ftp7 from remote machine?

    Btw, the server has two IPs, so on the server side, I can not connet the ftp by using "ftp localHost". I can only connect it through "ftp 127.0.0.1".

    on the server machine, by typing "ftp ftp.abc.com" will not work.
    And all the not working situation is: They can connect to ftp service, till server asks input username, but whether I only input username or hostname + | + username, they will always give me "550-No such host is known" message...
  • 02-11-2009, 2:49 AM In reply to

    Re: How can I connect to ftp7 from remote machine?

    I'm not certain if you reviewed this article, but it shows how to setup FTP 7.0 with virtual hosts.

    http://learn.iis.net/page.aspx/320/using-ftp-virtual-host-names/

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 02-11-2009, 3:09 AM In reply to

    Re: How can I connect to ftp7 from remote machine?

    Would you mind to share the relevant part of <sites> section from the applicationhost.config that contains the  ftp site setup?

     

    Jaroslav Dunajsky (MSFT, IIS)
  • 02-11-2009, 3:30 AM In reply to

    Re: How can I connect to ftp7 from remote machine?

    I just did a quick experiment. Just like I suggested in my original response I'm quite confident that you only bound port 127.0.0.1 for your FTP site. With such configuration I can reproduce your problem .
    You may wonder why FTP service listens on IP addreses that were not configured. The reason is security. It tried to prevent other application on the machine stealing the address space. By default the ftp server will listen to all available IP addresses (can be disabled but not recommended) even if you only configure one. However, only the explicitly bound IP addresses (unless wildcard is used) will be allowed through.  If you didn't have hostname configured for the site then your connection from remote server would be reset right after you connected. The hostname procesing wll delay the rejection of the connection. Unfortunately it uses confusing error message.

    Check the Bindings on your FTP site and add external IP address and that will resolve your problem.

    Jaroslav Dunajsky (MSFT, IIS)
  • 02-12-2009, 12:09 AM In reply to

    • wappibz
    • Top 500 Contributor
    • Joined on 11-01-2008, 12:32 PM
    • Posts 14

    Re: How can I connect to ftp7 from remote machine?

    Finally! I found a solution, hope this will help people have same problem with me.

    If the server machine has more than one IP, then I think binding 127.0.0.1 to a ftp site is not a good idea, I do not quite familiar to the machine settings, I just feel that FTP server will not know which IP is to the 127.0.0.1. Hope someone can explain this.

    So, I changed the binding from 127.0.0.1 to the real IP, for example, I have 3 sites on the server machine, two IPs. If I bind 127.0.0.1 to all three sites, remote machine can not get access to any sites. If I bind real IP for those three sites, there would be no problem to get connected.

    eg. a website www.abc.com, its IP is 10.1.2.3, then add a FTP site on this web will binds as followed: IP 10.1.2.3 , virtual host name ftp.abc.com.

    Then you can get connect to ftp server by using any of the following commands:
    1) ftp www.abc.com
    2) ftp ftp.abc.com
    3) ftp 10.1.2.3

    And when the server asks for username, just remember to give it hostname + | + username like: ftp.abc.com|username.

    Thanks for all the advice.
Page 1 of 1 (15 items)
Microsoft Communities