Solved

setting localhost ip

Posted on 2003-11-20
2
432 Views
Last Modified: 2008-02-26
is localhost just part of iis?

the thing is that, ive set up apache and php on my laptop so when im at college i can view php files,
but the problem that i have found out now is that so i can access the php file using the ip that is static
to the network card it has to be plugged into a network, what i am wondering is how i can access
the pages when the laptop is not connected to a network

is this possible??

thanks in advance
0
Comment
Question by:helz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
samri earned 50 total points
ID: 9795615
No. Localhost is not part of IIS.  Localhost is a "generic" name for loopback interface, or so called dummy IP address which is tied up to local machine.  The IP address for localhost by default will always be 127.0.0.1

You could try to browse to http://127.0.0.1/ or http://localhost/


0
 

Author Comment

by:helz
ID: 9796919
Fixed :)
 
in httpd.conf file on the line:

Listen 192.168.1.3:80

where that ip was only being issued to the laptop when it was connected to the network, so i changed it to:

Listen localhost:80

and pointed my broswer to: http://localhost/ (both when it was and wasnt connected to the network)

and it worked both times!!

thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question