I had setup my wampserver and I'm not able to access it from my external IP. Note that wamp server is online and all services running.
On www.yougetsignal.com my port 8080 is open as you can see.
Port 8080 is open on 174.94.73.xxx
I opened the port in my windows firewall too. I'm using Bell Home Hub 2000 as my modem/router. Even in my modem the port is open and I redirect to my computer 192.168.2.15 for all incoming connections with this port.
In my httpd.conf I got the following
Listen 0.0.0.0:8080
Listen [::0]:8080
#I tried to add this line but nothing changed
#Listen 192.168.2.15:8080
#Tried this one too but wampserver can't start apache if I uncomment
#174.94.73.xxx:8080
ServerName 192.168.2.15:80
#I tried 192.168.2.15:8080 without success
http://localhost:8080/ is working
When typing in my browser my public IP (174.94.73.xxx:8080) I got an error that says Website can't be accessed. 174.94.73.xxx:8080 took too long to respond.
Few days ago, my website was working but when I changed my provider from videotron to Bell it stopped working. Since, I did a few changes and now I'm not sure how it was set before. Does anyone know what's wrong?
Related
I try to connect to my computer xampp website from other computer.
I got my IV4 IP, it works from local but not work from other computer.
my xampp version is v3.2.2
seems like there's no version available right now.
how can I set for it?
thanks for looking.
on the LAN line, most routers allow any connections between peers, but I think you're trying to connect from outside that WiFi/router, yes?
If so, you need to get the public IP of the host computer running xampp (Google 'what is my ip'), then you'll need to port forward your local ip (192.168.1. something) and the port of xampp by going into your router settings. Port forwarding basically tells your router that outside connections should be allowed if they're using that IP and port. You'll then use the public IP and port in your browser from any device to see the website.
I've installed Wampserver2.0i on Windows Server 2003 and I've tested the port 80 using the option from the menu once I clicked the wamp icon in the notification bar and the result from the cmd as the below:
Server: Oracle HTTP server powered by apache/1.3.22
mod_plsql/3.0.9.8.3b mod_ssl/2.8.5 OpenSSL/0.9.6b mod_fastcgi/2.2.1
The problem is localhost take me to Oracle server not to the www directory!
How can I solve this?
You cannot run 2 web servers on the same machine without changing the configuration of one of them. By default all web servers Listen on TCP port 80 and thats the reason you are having problems.
Because the Oracle HTTP server powered by apache/1.3.22 is probably configured to start automatically it has already captured TCP Port 80 and therefore when you start WAMPServer it cannot get access to port 80, only one program can use a port at any one time.
You can change the port number that Apache listens on quite easily, as suggested by bob dylan.
Edit the httpd.conf file and change the config to tell Apache to listen on another port, so using the WAMPManager menus you would do this :-
left click wampmanager -> Apache -> httpd.conf
This will open the httpd.conf file in an editor, look for these lines
Listen 0.0.0.0:80
Listen [::0]:80
And change them to, for example
Listen 0.0.0.0:8080
Listen [::0]:8080
Save the file and then restart Apache
left click wampmanager -> Apache -> Service -> Restart Service
Now Apache will listen on port 8080 so the 2 Apache versions will not conflict with each other.
However this change means that you will have to put the port number on all your URL's like so
localhost:8080
localhost:8080/phpmyadmin
which can become a bit of a pain after a while.
A simpler solution would be to put WAMPServer on another machine and then there would be no conflict. Remember WAMPServer is configured to be a development web server and not a LIVE web server. It should run just fine on your own personal workstation/PC.
In C:\wamp\bin\apache\apache2.4.9\conf
edit httpd.conf where it says:
Listen 0.0.0.0:80
Listen [::0]:80
Then restart your service
http://www.techrepublic.com/blog/diy-it-guy/diy-running-apache-on-a-non-standard-port/
Ive been searching around the internet and I cannot not find the answer to why wampserver is only running on localhost. I have pressed Put Online and I still do not know why it is only running offline. Not sure if it is my wampserver setup or my router blocking me, so any help would be great.
To access your server from the internet you need to do a number of things not specifically related to WAMPServer.
First you need to port forward your router, this allows un-solicited traffic on port 80 throught the NAT router firewall protection, into your network where normally for security reasons it is not allowed in. This opens the port and makes sure that all traffic on port 80 of yor router is directed to the PC running WAMPServer i.e. Apache. So you will need to make sure that the PC running Apache has a STATIC ip address and is not being allowctae an IP by the routers DHCP server.
This site can be very helpful with learning how to do that
Once that is done you may also need to configure your software firewall running on the PC that has Apache on it to allow traffic on port 80 into the PC. Although you may have allowed this already when you first ran Wampserver after it was installed.
When you use the WAMPManagers Put Online and Put Offline that changes the Apache config (httpd.conf) and should change
# onlineoffline tag - don't remove
Require local
which tells apache to only allow connections from the PC running Apache
To
# onlineoffline tag - don't remove
Require all granted
which tells Apache that it is allowed to action connections from any ip address in the world
1) Check you firewall setting 80 port enable
2) Check anti virus Blocking
3) c:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
Order Deny,Allow
Deny from none
Allow from all
I am using WAMP on Windows 7 Enterprise. It was working fine initially, even though the icon remained red in the tray. My PC remains on 24x7 but yesterday I restarted it due to a pending windows update. And now, WAMP no longer works i.e. I cannot access anything under localhost. The browser (chrome) returns a webpage unavailable error.
I do not have Skype installed. I did try and test, and it said that Port 80 is used by some other application. As I do not have admin rights, I reconfigured the httpd.conf file for Apache to port 81, but even that did not help.
I also ran a netstat -ao using CMD, but I could not find anything running on Port 80.
Any ideas as to what can be done to solve this? Thanks.
I had the same issue in my windows 7 home basic.
Maybe you could solve by this:
1)Your port 80 is mostly blocked by Microsoft iis server. so if iis is using port 80 than apache wont be able to use the port.
2) So, change the listening port of apache. apache has a file name httpd.conf.Open the file in a text editor and there will be port 80 already written, change the port to 8080 (mostly people use 8080).
3)So now your Apache runs on different port.
4) Restart apache services or restart your wamp server.
5)now Open your local host by, localhost:8080
6)you will see your localhost page.
Hope it solved your problem.
I am facing same problem to the thread. I've gone through all the suggestions provided in the solution. I've searched all possible solution but nothing gonna workout.
"http://stackoverflow.com/questions/817745/localhost-not-working-on-xampp-both-service-apache-mysql-are-fine"
I've ensured :
1. Xampp is successfully started (in log) but it is not receiving any request(checked access.log).
also ensured that it is running on port 80 in config file.
confirmed status of application using netstat
C:\Documents and Settings\user>netstat -aon | grep 80
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 3524
Checked host file in /windows/system32/drivers/etc/hosts and has only one entry
127.0.0.1 localhost
skype teamviewer or other application are closed and configured not to use port 80.
ensured that windows firewall allows http process to use port 80.
pinged localhost, 127.0.0.1 and my ip (192.168.1.2). localhost resolves to 127.0.0.1
tried different urls http:// localhost http:// localhost:80 http:// 127.0.0.1 http:// laptop-name but nothing works. browser just waits for response (spaces after http to allow links in this post)
ensured that there is no loop in index.php(it is untouched) and also has index.html. also tried diffent paths
nothing gonnna work out. I am irritated and I dont want to format my machine. please help....
when this happens to me it is usually Skype taking over the default localhost address
Check on command prompt
netstat -a -b
And close any other application like skype etc using 80 port.
Try stopping IIS. It worked for me.
Select Start, then type IIS in the search box
select Internet Information Services Manager
In the manager on the right under "Manage server"select "stop"
I was having an issue with Last.fm that is very similar to yours, and I found that it was a software conflict.
The Last FM scrobbler application would not finish installing on my new build because it couldn't login or authenticate my username. I tried the regular scrobbler application and then tried the beta desktop program on Windows 7 64 bit. I suspected Skype or TeamViewer, but even after stopping or exiting those programs, neither versions of the installation would log in to the services.
The beta desktop application actually authenticated on 127.0.0.1 (random port) through my internet browser, but my browser would time out trying to send data over the port.
I checked and edited my HOSTS file in Windows, but that didn't fix the issue either.
Pinging 127.0.0.1 worked, but pinging any variation of the port would time out.
Finally, I decided to uninstall the Windows 7 Firewall Control program made by Sphinx Software. Mind you, I had set the firewall to be disabled at start up (clean start-up - all startup programs disabled through MSConfig).
I made sure that the firewall program was not running at all in my services. However, after uninstalling the software, even without restarting my computer, 127.0.0.1 opened up on all ports and my Last.fm scrobbler finally connected and finished installation.
So, it may be a hidden setting that can only be undone by uninstalling programs (even programs that aren't running).
For me localhost was not the correct address.
Type into cmd "hostname" and use that as the url.
CMD -> hostname
If that doesn't work try just the ip address of the server (or computer)
I stored my website folder in xamp/htdocs (windows machine). Then I started apache on the XAMP control panel. My pages rendered successfully when I called http://localhost/mysite/index.html.
I hope this is helpful.