Link to home
Start Free TrialLog in
Avatar of jhamel2
jhamel2

asked on

FTP7 : 530 Valid hostname is expected

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?
Avatar of Rick Fee
Rick Fee
Flag of United States of America image

Your host headers are probably not setup correctly.

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

ASKER

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?
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!
Avatar of jhamel2

ASKER

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,
ASKER CERTIFIED SOLUTION
Avatar of meverest
meverest
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jhamel2

ASKER

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!

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.
Avatar of jhamel2

ASKER

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
Hi,

you have the username/hostname reversed!

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

<!>

Cheers.
Avatar of jhamel2

ASKER

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

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