How to set up a local proxy server? - php

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.

Related

Server data accessing from non local network without port forwarding

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.

Unable to access localhost using android mobile

Hello I have a problem in accessing the localhost in my android device. I can't open my localhost in my browser. I installed an application that supports httpd, php and mysql. But when I have a connection in the Internet there's no error in displaying the localhost. But if I disable it, I can't open the localhost. Is there a configuration file that I need to configure in my device? I am using ICS. I am using 127.0.0.1 as my localhost I also did 127.0.0.1:8080 but it doesn't work also.
If you're trying to access your web server over your local network, then you'll need to bind the web server to an IP address that the device can access - this is not 127.0.0.1. Assuming you're on wifi with your android, you'll want to have your web server listen to something along the lines of 192.168.1.X. If you use 0.0.0.0 it will accept on all interfaces, this should work as well. Either case, you'll need to access your web server from your device using your web server's local IP address, not localhost and not 127.0.0.1
Localhost as the url in a browser should access the server running on that device.it sounds to me maybe you are connected to a remote desktop or something. Tcp/ip utilities in particular try tracert localhoast or route. config /release maybe your touting tables are messed up,weird
The localhost refers to the device on which the code is running, in this case the emulator.
If you want to refer to the computer which is running the Android simulator, use the IP address 10.0.2.2 instead 127.0.0.1. You can read more from here.
I encountered the same problem while working with my localhost too. The problem turns out to be with the antivirus that i was using. I was able to access my locahost again after turning the antivirus off. But because i cannot continue using my machine without an antivirus I just have to change the antivirus to another one. It worked for me, Hope it will for you too.

why apache web server running on windows 7 not able to allow external incoming connections

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.

testing php website on wampserver using android web browser

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.

LAMP stack on home computer as a public web server

So I'm using this website:
http://www.howtoforge.com/ubuntu_debian_lamp_server
to setup LAMP on my Ubuntu Virtual Machine.
Here is my question though,
This will enable me to program and test through localhost. How can I set this up so anyone on the web can access my .php pages from any Internet capable device, and they will still interact with my local database, etc?
If you open port 80 in your firewall to your local machine, it should be available to the outside world via your ip address. You will need to check your router settings to figure out how to do this, but usually it's called port forwarding.
You could then use a free service like dyndns to give yourself a domain name that you can then type into your browser such as
myserver.dyndns.org
You have a couple of options...
1) Find a site that hosts LAMP and put you site up there. Many of them allow you to register a domain name and they manage the machine.
2) Do what Ben Rowe suggested, use a DNS forwarding service (Some are free, some not). Host the site on your own machine, some ISPs do not allow you to use port 80, you might need to use another port.

Categories