Solved

setting localhost ip

Posted on 2003-11-20
2
427 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
2 Comments
 
LVL 15

Accepted Solution

by:
samri earned 50 total points
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now