IIS host headers

Hi,

I'm new to IIS an please forgive me for an easy question.

I have test server and hosting few sites on it. I need to allow two client machines to access my new test site on the server.

test site is accessbile by site's IP address and port number specified. ( 10.x.x.x:2040)

I need to allow this site to be accessed by a friendly name ( which in that case I though host header would be good idea) So added a Hostname in the IIS from site bindings and called it testsite with the same IP and port number

my question is regading host file entry. do I need to add this new entry to server's host file? or need to add it to client machines' host file?

Please advise How I can ensure that my test site is accessbile by two client machines using the host name in IIs.

thanks
kuzumAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MAS (MVE)EE Solution Guide - Technical Dept HeadCommented:
First you add a host entry in one PC and access by name. If it is working you should add an A record in your DNS server to access by name. Host entry will be difficult for you as you need to do on all PCs.

To make sure your site is working browse the site from IIS from server
Right click Default website-->Manage website-->Browse
0
kuzumAuthor Commented:
site is only accessbile on the local server when I do "browse 10.x.x.x:2040"  This is the IP for the local server and this IP has a A record in DNS for the server

can you please let me know exactly what host entry im adding in my host file on the client machines?
0
kuzumAuthor Commented:
do I also change anyhing on the server host files? thanks
0
Hey MSSPs! What's your total cost of ownership?

WEBINAR: Managed security service providers often deploy & manage products from a variety of solution vendors. But is this really the best approach when it comes to saving time AND money? Join us on Aug. 15th to learn how you can improve your total cost of ownership today!

kuzumAuthor Commented:
sorry for all the questions in separete windows. Do I also have to have "www" in my host header or can I simple call it "test"

im using windows 2012 server as my IIS server. thanks
0
kuzumAuthor Commented:
Hi,


DO you need more information or am I confusining anyone?
0
kuzumAuthor Commented:
here is what I did so far

on the server added below header name test.mydomain.com and IP is set to 10.x.x.22 port: 2040

on my laptop added below host entry: 10.x.x.22 test.mydomain.com

I can ping from my laptop to "test.mydomain,com" and I can get reply back from site ip which is my server's IP.

on the lIS server I clickedon "browse test.mydomain:2040 (http)" but it comes up as this page cannot be displayed

Only think I did not is IIS restart which I will do in few hours time. Can you please confirm where I'm going wrong ?>
0
kuzumAuthor Commented:
I need to sort this out asap. Can any one avaiable to answer this post please? much appriciated
thanks
0
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
You will not be able to browse to test.mydomain.com the server.

 You will need to add 10.x.x.22 test.mydomain.com to the host files on the server as well.

 It's only when you set up the A record in your dns, then you will be able to access test.mydomain.com anywhere on your network.

 Regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.