Solved

FTP7 : 530 Valid hostname is expected

Posted on 2009-07-07
13
20,114 Views
Last Modified: 2013-11-29
Hi,
I have the exact same issue :

I want to configure multiples FTP sites or Web sites + FTP Publishing using host names (same IP). Everything is set correctly in the DNS, permissions are set on the folders, etc.

When we try to connect to the FTP sites :
530 Valid hostname is expected

Any ideas?
0
Comment
Question by:jhamel2
13 Comments
 
LVL 20

Expert Comment

by:EndureKona
Comment Utility
Your host headers are probably not setup correctly.

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

Author Comment

by:jhamel2
Comment Utility
Hi,

Thanks for the reply and the link.

Yes my host header is set correcly :

ex:  myhost.mydomain.com

The host is set up correctly in the DNS as well (ping ok).

I try to access by using :  ftp://myhost.mydomain.com

530 Valid hostname is expected

Any ideas?
0
 
LVL 37

Expert Comment

by:meverest
Comment Utility
Hi,

what username are you supplying to log on to the server?  you need to pass the hostname in the username field, like:

Username: myhost.mydomain.com|myUsername

ftp host headers do not work the same as web host headers, so you can't expect it to work in IE like web sites do,

Cheers!
0
 

Author Comment

by:jhamel2
Comment Utility
Hi,

Im trying to logon the "standard" way by using a FTP client (ex: FileZilla).

Ex:

myhost.mydomain.com
myuser
mypass

I set connection mode to : Active Mode.

"myuser" have the proper rights on the home directory.

What am i doing wrong?

Thanks,
0
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
Comment Utility
Hi,

I already said:  "you need to pass the hostname in the username field"

so,...
myhost.mydomain.com
myhost.mydomain.com|myuser
mypass

use the pipe character ('|') as delimiter between the username and hostname.

Cheers,  Mike.
0
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!

 

Author Comment

by:jhamel2
Comment Utility
Hi,

Ok for the username format but it doesnt even seems to get to the authentication process :

EX: if i enter my host in a browser ftp://myhost.mydomain.com, i immediatly receive the 530 error (No such hostname).

Also, i dont use IIS Manager for permissions. What should be my settings concerning authentication, etc.? (i want to control access with Windows accounts)


Thanks a lot!

0
 
LVL 37

Expert Comment

by:meverest
Comment Utility
Hi,

that is probably because your browser is attempting to log in anonymously first.  This the error.  You should be able to disable anonymous auth in the browser settings.

cheers.
0
 

Author Comment

by:jhamel2
Comment Utility
Hi,

Here's my procedure :

1. Create FTP account (from Computer Management, no AD)
2. Set the appropriate permissions on the home folders of the website (d:\inetpub\vhosts\mydomain)
3. Add FTP publishing to the website (FTP7)
4. Set IP address (same as website)
5. Check hostname :  myhost.mydomain.com
6. Specific user (read, write)  (user created at step 1)
7 Allow SSL
8. Finish
9. Restart FTP site, web site.
10 In dos console :  ftp myhost.mydomain.com
11. myuser|myhost.mydomain.com

= 530 Valid hostname is expected.

Just when is was starting to love IIS7 :(

Thanks






ftp "myhost.mydomain.com"
myuser|myhost.mydomain.com
0
 
LVL 37

Expert Comment

by:meverest
Comment Utility
Hi,

you have the username/hostname reversed!

ftp "myhost.mydomain.com"
myhost.mydomain.com|myuser

<!>

Cheers.
0
 

Author Comment

by:jhamel2
Comment Utility
Hi,

I figured out after my last post... Now it works!!!

But i also had to do the following in order to active dynamic FTP ports in Windows Firewall

Reference :

http://blogs.iis.net/jaroslad/archive/2007/09/29/windows-firewall-setup-for-microsoft-ftp-publishing-service-for-iis-7-0.aspx

Thanks for your help!
netsh advfirewall set global StatefulFtp enable

Open in new window

0
 

Expert Comment

by:MartinVolkart
Comment Utility
ok, thanks, it works this way.....

...and now, can anyone tell me, how to logon for example with expression, when the program says, that  the pipe can't be used in the logonname?

thanks for your tipps
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

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

11 Experts available now in Live!

Get 1:1 Help Now