Connecting locally

I had just started a webserver (in WSAD).  I would like to connect to it locally via IE.  How can I do that?  I'm a noob to this stuff, so please excuse my naiveness.
LVL 4
JK2429Asked:
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.

stevenlewisCommented:
http://<local ip>
where the <local ip> is the ip of the local machine
example if using 192.168.0.25 on the machine then
http://192.168.0.25
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
JK2429Author Commented:
If I have a certain HTML file which I need to access, how can I do this?
0
FocusynCommented:
stevenlewis's method will work as long as you're browsing to the default webroot of the machine.  If you are going to set up more than one vhost or domain on a single webserver though, you'll need the capability to past http headers so the server machine knows which site you're requesting.  As such, a more correct way to do this is to find the file on your computer called "Hosts" with no file extension.  It's in %systemroot%\system32\drivers\etc I think, somthing like that.  Open it with notepad and you'll see a small description of what it does, and usually the following entry

localhost              127.0.0.1

What you want to do is add a line immediately under that with a route to your web site.  For example, if your web site is "yourwebsite.com" and the server is on your loacl network with IP address of 192.168.0.5, you should edit your hosts file to look like this:

localhost              127.0.0.1
yourwebsite.com   192.168.0.5

Then save the file and open internet explorer.  When you type in "http://mywebsite.com" the hosts file tells internet explorer to use the address 192.168.0.5 instead of looking up the address through an internet DNS server.  

FYI - if this is just an intranet site or something you're experimenting with, and doesn't have an actual outside address, you can still use the hosts file edit method.  It works for intranet as well as internet addresses.  You can just give it any name you want to, for example "http://testsite"  by editing the hosts file as discussed and replacing "yourwebsite.com" in the example above with "testsite"

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

FocusynCommented:
to access a specific html file, http://serveraddress/filename.html

for serveraddress use either the IP address if you're using the first method, or http://mywebsite.com/filename.html if you edited the hosts file as I suggested.
0
muhalokCommented:
Just type "http://localhost" in IE - and you are done.
0
FocusynCommented:
same thing in my last comment applies to localhost if you're viewing on the same machine on which the web server is running.  http://localhost/filename.html

If the web server is not the machine you are on, http://localhost will not work, because it automatically goes to http://127.0.0.1 when you type in http://localhost because it is the defualt entry in the aforementioned hosts file.  127.0.0.1 is the default loopback address, meaning 127.0.0.1 tells the computer to connect to itself.
0
JK2429Author Commented:
Thanks everyone!!
0
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
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.