how to access local host in wamp when using proxy server - apache

I am using proxy server address proxy1.xxx.xxx.xx to connect the internet using port number 8888 and when i want to connect to my localhost project it bring error
The requested URL could not be retrieved
but if I did not use proxy server it work correctly
how can I configer to connect with proxy server on. I am working in wamp server
here is my httpd.conf
ServerName localhost:81
HostnameLookups Off

The proxy can't see your local server because it only exists on your machine, and can't be accessed from the outside.
If you tell the proxy "connect to localhost", the proxy tries to connect to 127.0.0.1, which is its own machine, not yours.
If you want to do so, you must configure your webserver and router to accept remote connections on that port, and give the proxy your public IP address instead of localhost

Try to allow the proxy to by-pass local addresses and add your localhost to the list of exceptions. To do so using Chrome:
Go to Settings, Advanced Settings
Navigate to, Change proxy settings then LAN Settings
Click on the checkbox, Bypass proxy for local addresses as shown in the image below.
Check: Bypass proxy for local addresses
This should allow you to access your localhost from behind the proxy server.

Related

Not able to put server online

I have my IP Address of 192.168.1.119 and I want to put my server online so other (sharing same LAN) can access it I have tried to change few configs and it didn't work, I have changed my port from 80 t0 8080 as I have IIS running on port 80. Here is my apache config(httpd.conf) file details.
I am not getting what is wrong with my config files or is there something missing that I need to setup?
Note: I have selected "Put Online" option from WAMP Server context menu.
http://192.168.1.119:8080/index.php
You can access this on your local network. If you want to access your content from web then you need to check your ip address then hit the same in browser with correct port number. https://www.whatismyip.com/ for public ip address.

xampp Apache enable proxy for interent operations

I have followd this answer https://serverfault.com/a/249582 to enable proxy and put a line to forward internet operations. However, since I use http://localhost to browse my website, it also redirected localhost to the proxy server and thus my website cannot even load.
How can I bypass local addresses such as localhost, 127.0.0.1 or internal network IP such as 192.168.1.50, such that fopensock can work normally?

Can't see site externally

I'm brand spanking new to setting up websites, so go easy.
Basically I setup an osticket system on my XAMPP stack and It works locally no problem but when I try to access it from my public IP it won't connect.
I've port forwarded port 12345 -> 80 as my server listens on 80.
So theoretically if I type in my URL bar it should connect right?
In the httpd.conf file for Apache do I enter the external or internal IP address? I'm assuming I leave it as localhost because the .conf file is local to the server.
My networking setup:
Firewall setup:
<PublicIP:12345> ALLOW <PriavteIP>
Port forwarding setup:
<PublicIP:12345> -> <PrivateIP:80>
It's hard to tell without understanding more about your setup. I'm going to assume you have a router that connects your internal network to the Internet, and you have one or more computers connected in your network, and your server is one of those.
So are you talking about the port forwarding rules on your public-facing router's firewall? If you are forwarding port 12345 from your router to port 80 on your server, the reason it won't work is because a standard HTTP request from a public machine will come to your router on port 80, not port 12345. Are you entering in a URL with the 12345 port number in it? If anything, you should simply be routing all requests to port 80 on your router to the IP of your server.
You can check this if you try to view your web site using the port number in the URL. So if your IP address to your router is 5.6.7.8 you would enter http://5.6.7.8:12345 and this would load your web page, as the request for a page from port 12345 would get forwarded to port 80 on your server. But honestly I think you just need to get rid of port 12345.

show my localhost in someother pc via ip

I have a site in my local which is running under xampp.Now in another Mac I want to access the local site.It can be done via sharing the ip? or something to write in host file.The source machine is windows and the target machine is mac.
I dont know how to include the ip in host file in Mac.
Assuming that it's running on port 80 or 443 and your firewall is set to allow requests on those ports, you should be able to navigate to the ip address in a browser. If you're requesting your local site from outside your subnet then you might need to configure port forwarding on your router

Apache Tomcat IP mapping to domain name

I am having apache tomcat server on my windows machine. Also I can access this server from other machines on the network.
Now I want to map the IP+Port combination to a name ie currently I have to write http://10.xxx.xx.xx:8080/app_name but I want to access it as http://app_name
How can I go about it? Is there any solution which I can achieve by adding some mapping in apache server file? Also DNS server is not in my control, any way to get around this problem?
Thanks
Rohit
By not specifying a port number, you are defaulting to port 80. Your options are to either modify your server to listen on port 80 or define an external load balancer VIP that does a PAT from port 80 to 8080.
If you take the VIP route, the hostname is defined on the load balancer. If you don't have that option and DNS isn't an option either, you could manually modify your hosts file with an alias. However, this would require all remote users to have your hostname - IP mapping in their local hosts files (making DNS the more manageable solution).
When user types the URL in browser, browser will establish TCP connection with web server in the port 80 by default in case of HTTP, 443 by default in case of HTTPS.
Yes. If Web server exposes any port other than default port, port has to be mentioned in the browser URL to connect and get the data.