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.
Related
(using xampp )
i did it :
1- change port 80 to 8080
2- change serverName localhost to my ip
3- change to unable firewall in windows 10
4- and restart xampp
but can't access website from other PC
where is the problem?
May I know how your other pc to access your site?
By the intranet network, your site IP like 192.168.1.123
And your other pcs they are under same network and their IP like 192.168.1.124,125...
You can try to do:
Open the powershell of windows and ping/mtr/traceroute the others pc to check the connection OK or not each other, and ping yourself from those pc.
If both connections are not OK, please check is there security software or router blocked, then you need check them or ask your infra.
If both connections are OK, then we go to check the others pc:
Is there software like parent control to block browser access, and only access some sites.
How to ping, traceroute and mtr, here's a reference for you:
https://www.akliz.net/manage/knowledgebase/49/How-to-Use-Ping-Traceroute-and-MTR.html
And you can try the proxy tool 'ngrok' if all I said not work,
it is better tools for web developer to share localhost site to external user to access.
https://ngrok.com/
I'm using XAMPP server and I have my files in htdocs folder of XAMPP.
I had connected to my laptop using my mobile hotspot.
Can I access my files in XAMPP folder from another system which is not in same network i.e., can I access the files present in XAMPP folder from another another computer via internet
without router only by mobile hotspot?
Yes, it's possible to access the web server from an external network, depending on your current network configuration.
There are two simple solutions I think would suit you.
Configure your firewall if needed, enable port forwarding in your router settings to forward port 80 to the internal IP of the machine running your XAMPP-server.
If you're on a network in which you can't configure, I recommend checking out ngrok.com, which is a service where you can setup a public URL for your XAMPP-server. Works from any type of network, where you have internet-access, of course.
Note, alternative 2 is good for exposing a development-server, nothing I'd recommend for running a site in production.
Most network providers don't allow accessing the termials in the network.
If your provider does portforwarding and entering the public(!) IP of your hotspot should bei enough.
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.
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 have downloaded Glype PHP proxy script. I have put it up in the localhost. Now I want all application on my PC to access internet through the local proxy server. How do I do that?
I've tried changing the LAN setting in Google Chrome. I enabled the option Use a proxy server for your LAN and set the address to http://localhost/glype-1.4.3/. But it didn't work out.
I am IIS7 Server on Windows 7 Ultimate.
Please help me out.
You don't need to Use a proxy server for LAN settings in Google Chrome, Glype PHP proxy script just provides a proxy service to users via a web browser, you just browse website then enter any website address to surf.
First of all sir You need to install Linux or Unix based OS on your PC, they are the best servers, then extract the glype scripts into homepage and configure apache to accept connections on your ip and be sure to use a static ip within your local network.