?
Solved

setting localhost ip

Posted on 2003-11-20
2
Medium Priority
?
434 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 150 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 10 hours left to enroll

752 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