Link to home
Start Free TrialLog in
Avatar of helz
helz

asked on

setting localhost ip

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
ASKER CERTIFIED SOLUTION
Avatar of samri
samri
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of helz
helz

ASKER

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