cannot access localhost.
Posted by: davidmanvell (---.hr.hr.cox.net)
Date: June 09, 2009 06:23AM

New to this so sorry if these questions seem basic.

I have Wampserver installed (Latest version).

Trying to go to [localhost] in firefox gives me the following error:

Firefox can't establish a connection to the server at localhost.

Yet I can go to [127.0.0.1] or to [72.218.6.241] (My Internet IP address)

and it works fine. Any ideas why localhost will not show?



Edited 2 time(s). Last edit at 06/09/2009 06:48AM by davidmanvell.

Options: ReplyQuote
Re: cannot access localhost.
Posted by: davidmanvell (---.hr.hr.cox.net)
Date: June 09, 2009 06:46AM

Additional information:

On the machine Wampserver is installed if I type in:

[192.168.1.105] (My ip address on my local network) or [72.218.6.241] (My internet address) I can see the photos I have installed. I can also see the files listed if I go to another computer on my local network and type:

[192.168.1.105]

However I cannot see the photos if I try to access [72.218.6.241] from any other computer (On my local network or from the internet).

WAMPServer says all the servers are on-line.

I do have port forwarding turned on to:

Application name (I've tried both wamp and wampapache. not sure which it should be).
start and end port are both 80.
Protocal set to both.
ip address 192.168.1.105
and it has been enabled.

When I try to access [72.218.6.241] from any other computer (On my local network or from the internet), I get a 'A communication error occurred: operation timed out' error. It does work however if I type [72.218.6.241] from the computer Wampserver is installed on (192.168.1.105).



Edited 2 time(s). Last edit at 06/09/2009 06:52AM by davidmanvell.

Options: ReplyQuote
Re: cannot access localhost.
Posted by: themarty (---.tiscali.nl)
Date: June 09, 2009 08:25AM

Look for a file called 'hosts' (so, without extension) in your windows directory. It's probably located in system32\drivers\etc
In this file hostnames are mapped to ip-addresses. Probably 'locahost' is missing here.

This is what it should look like:

Quote

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains etc etc etc

127.0.0.1 localhost

Options: ReplyQuote
Re: cannot access localhost.
Posted by: yfastud (Moderator)
Date: June 09, 2009 02:30PM


Options: ReplyQuote
Re: cannot access localhost.
Posted by: davidmanvell (---.hr.hr.cox.net)
Date: June 09, 2009 06:11PM

Thanks themarty. That took care of the localhost issue. yfastud, I still cannot access the webserver from outside my lan. I've been through that tutorial and others exactly like it a thousand times now.


I have installed WAMPSERVER 2.0 on my windows vista x64 system but still am having issues with getting the webserver to be seen outside my local network. It is working fine within my local network.

For testing purposes I have disabled my firewalls on my windows OS and on my router completely. They are turned off.

I have changed my httpd.conf file to the following (Allow from all):

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
Allow from 127.0.0.1

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.

I have set up port range forwarding to the IP address of the computer on my lan that has the Apache server on it.

[i693.photobucket.com]

I also turned on the WAMPSERVER and made sure all services are running.

What am I missing? I can access the webserver from the computer the webserver is on but not from outside the lan

Options: ReplyQuote


Sorry, only registered users may post in this forum.