I'm trying to connect to my laptop's WAMP localhost from an Android device. But I still couldn't get it through.
Both machines are connected to the same wifi, and I think it should be okay since it shares the same router.
I've tried using my laptop's IP address, but it couldn't find the wamp index page.
I know there has been a lot of similar questions before, I've tried numerous solutions but still cannot make it work.
I'm using WAMP 2.5 with
Apache Version :2.4.9
PHP Version: 5.5.12
Server Software: Apache/2.4.9 (Win64) PHP/5.5.12
MySQL Version: 5.6.17
Here is my httpd.conf config file: Link to pastebin
Some things to try:
1. Make sure the firewall on the laptop will allow the android device through. You might just need to add an ip exception.
2. Make sure the firewall will allow for the service on the laptop to be accessed. It might just be allowing port 80 (or whatever port the WAMP server is set up on). It might also mean the WAMP executable.
3. Make sure the android is on the same subnet as the laptop. If not, and you cannot change it, you may need to do port forwarding on any routers between the android and laptop. (Forward to the port the WAMP server is listening on.)
4. Try other things that you know work - e.g. a different laptop/computer on the same subnet trying to access the WAMP server; try to access the WAMP server on the same laptop using the ip address and port for the WAMP server instead of localhost.
Just be fully aware of the security implications of the above. Opening firewall ports and having a web server on your laptop increase security risks. You might want to make sure the WAMP server is only running while you are testing, and you change your firewall back after testing.
Related
I have recently enabled IIS by going to the Add/Remove Programs option in the Windows Control Panel and enabled IIS via the “Turn Windows features on or off” checklist.
I also want to install PHP for Windows on the same laptop and have downloaded XAMPP but I have yet to actually install it. Is it possible to do this and run them both from http://localhost/ - or is that not possible?
If so, great stuff... but if not, can you please give me some helpful pointers on how to achieve both IIS and PHP/MySQL running locally from the same PC?
You can have multiple servers on one physical machine, but you can only have one server running on one port. The default HTTP port is 80 and the default HTTPS port is 443. If IIS is running on 80 & 443, then WAMP will have to run on another port, and vice-versa. To access web servers on another port, you use the address http://localhost:PORT.
To change the ports of either web server see these questions:
How to change port number for apache in WAMP
How do I Change IIS Express 8 port 80 to 8080
In theory, it is possible to run two different web servers in the same machine. The only trick you need to consider for this is adjusting the reach points which are ports.
So the answer of your question is both yes and no. You can run them together in your localhost but if you want to access them both from http://localhost/ it is not possible. you need to provide the ports they've using to do that like http://localhost:5000/
To achieve this, you just need to adjust some settings files in your XAMMP etc. Change the default port and it should work.
I have been at this for a while thought I would seek some help before I hit the sack. I have successfully downloaded Apache on a windows server and can run PHP files locally on that server. Using the IP Address when I run :
http://xxx.xxx.xxx.xxx:8085/test.php
on my local machine, I get a webpage error.
I checked on the Apache server, port, the IP and all but it yet doesn't seem to work. I am not well versed with servers and have a very brief idea about it.
What could be the issue?
I managed to get a solution. The port was blocked on firewall. Just had to add an exception for the port.
I have apache web server 2.4 set up on an Windows 7 - 64 bit in school with php 5.3 and mysql installed. This web server has a static ip address and I have allowed the Apache httpd.exe program on Windows 7 firewall.
When I tried to access the page in school (on the same LAN), I was able to access the page. But, when I tried to access it from home (with an external ip address) I wasn't able to access the web page hosted on the web server. When I tried to ping the static ip address of the web server in school it works but when I ping from outside school network, I get lost packets.
Further, I have Adobe Flash Media Server 4.5 installed on the same machine listening on ports 1935 and 1234.
I have also tried to uninstall and re-install apache but to no avail.
Any idea on how what is the problem here? Or any ways to test out the problem?
Is the problem because of Windows 7 tight firewall security? or 64-bit machine? or the adobe flash media server running on the same machine? or any misconfigurations out there in Apache?
Note: the static ip address is accessible and the server can serve a page when the server is running on windows xp previously. Recently, I just changed to windows 7 but the apache server can't seem to serve the same page.
Would really appreciate some help here!!! Thanks
Your server machine may have a firewall which allows connections, but the machine may stand behind the router which does not forward ports correctly. Have you checked this?
The LAN is being protected by the router to the external network. You need to get the administrator to configure this router.
I am trying to test a php website using the web browser in android device (Google Nexus S). The Android version is 4.0.3. I have installed WampServer on my machine (running Windows 7) and have copied my php code in the wamp/www directory. I am able to test the code by browsing to localhost from the web browser on my machine. To test from my android device I tried browsing to my machine's public IP address, but the browser just gets stuck and doesn't load the page.
Does anyone know a solution to this problem ?
Thanks.
If you are browsing to your PUBLIC IP you need to ensure your Windows 7 firewall is allowing traffic on that port. Browsing from your localhost most likely works because your firewall doesn't block local traffic. Browsing to your PUBLIC IP means you are going out to the internet, hitting your firewall (router/windows 7?), and then trying to get to your server. Do you have port forwarding setup on your router? Have you tried accessing your local LAN IP rather than your public IP?
Here's what I did:
References :
http://forum.wampserver.com/read.php?2,13744
http://forum.wampserver.com/read.php?2,30970,30989
I changed Apache httpd.conf to listen at port 8080 instead of 80.
Also I added a new inbound rule in my windows firewall to allow port 8080 TCP connections.
What is the best (and easiest) way to set these up on Windows 7? I have tried Xampp and WAMP but all I get after installing them is a blank local host. So I create a php info file using the following code:
<?php
phpinfo();
?>
Put it in the httpdocs folder, call it using http://localhost/info.php and I get a 404 file not found error. Even though I followed the typical install settings.
Are you by any chance running Skype in the background? Skype claims port 80 and port 443 as a firewall workaround. You can disable this in the advanced options -> connection.
This happens to me almost all the time I set up a new PC...
The problem was not with either xampp or wamp. The problem was with the proxy that is installed where I was using the internet. It has blocked access to the localhost. Bypassing the proxy for localhost in Internet options -> Connections -> LAN Settings -> Proxy Server does not fix this for wireless so to access the webserver I have to disconnect from the network to what I need to do and then reconnect.
The web server worked fine when I was on other non proxy networks.