Solved

setting localhost ip

Posted on 2003-11-20
2
431 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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