Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im using IIS 7.5 in windows 7 to establish a local FTP server to serving other clients in a LAN.

I modified site binding to add the server's local ip address (e.g. to be able to access the server from clients using its IP and they could access the server by using and it work.

But IP addresses are setup as dynamic and assigned by DHCP in this LAN and I would like to be able to access the FTP server by hostname or server name instead a dynamic IP address. but for example ftp://MyServerName does not work.

What would be a solution?
Thanks in advance.

share|improve this question

The computer name in this manner (it sounds like you are trying to use NETBIOS which is handled by a WINS server) is not a reliable method of connecting to a server on a local network. What will happen is (if no WINS server is provided and no address in cache) the computer will send out NETBIOS Name Query Request messages to the local subnet. If no response is received it then checks the LMHOSTS file. [1] This is not the ideal way to set up a reliable FTP service to clients on your local area network. You don't give any detail on how your IP addresses or subnets are setup, so it may be that the clients aren't in the same subnet.

A dynamic IP is pretty much the main kicker when trying to run a server, especially for websites or FTP sites. In such a scenario, if the requests aren't returned based on your subnet, you would need to edit your HOSTS file on each client to give the FTP server IP address a name like referenced here [2], which is not ideal because they would have to change this entry every time the dynamic IP address changes.

There is of course a way to setup virtual host names for FTP sites in your IIS version [3], but again, this would be of little use with a dynamic IP.

Long story short, for your clients to RELIABLY be able to connect your FTP server you should hardcode the IP address you want on the FTP box. Then you can setup your local DNS servers (if you have access to them) to resolve the name or you can edit the individual HOSTS files on the client boxes and everything will be pristine.




share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.