Search code examples
iisvirtual-directorywireless

Best way to define relation between server IP and virtual directory?


I have designed an IIS based library for a college on their server localhost and also I made a virtual directory which points to wwwroot to specify a proper name like "library". server is connected to a wireless modem. So when students want to use library they first connect to wireless Lan and then type http://library in their browsers. this structure works fine for windows laptops but not for mobile phone users (Probably non-windows users). they have to type server IP (192.168.1.2) instead of http://library in their browser to gain access to library.

Where should I define a relation between server IP and the virtual directory library so both laptops and cellphones can use http://library? on modem? on IIS manager? The student should setup something? or there is a mistake in virtual directory setup...?


Solution

  • This likely means that "library" is not registered in DNS. In whatever you're using for your DNS server (Windows DNS, router, etc.), you'll want to create either a CNAME entry routing requests for "library" to the actual name of the server that IIS is hosted on or a regular A (HOST) entry (assuming the IIS server has a static IP) for "library" pointing to the server's IP address.