i have installed XAMPP 1.7.4, now my project URL is
http://localhos.host/amu
and my IP is 192.168.0.40
i want to access my XAMPP Project to Another Computer how i do that
Configure the web server to listen on your external network interface (Apache is often configured to only listen on localhost by default).
Open port 80 for inbound connections in the firewall on your computer.
If you want people outside your LAN to access your server, enable port forwarding in your router/gateway, so that port 80 is forwarded to your computer.
If you use DHCP in your network, configure your DHCP server to give your computer the same address every time (for example, by MAC address).
Related
We have a PHP app which we installed on Azure VM. It works fine locally and accessible.
The server at 104.xxx.xx.xx is taking too long to respond.
We have used WAMP Server to host it and all looks fine. We are however not able to access it over the public ip of the server.
We have tried a few things without any result.
First of all, you can check if the port is listening with CMD comamnds netstat -anbo. If the port is listening on external address 0.0.0.0 then you can check if the firewall inside the Azure VM or NSG associated with the Azure VM NIC or subnet blocking it.
Navigated to the virtual machine --- networking ---inbound port rules to find the related NSG rules on the Azure portal.
You also can telnet the VM public IP address and port from the on-premise machine to validate the networking connection.
How to access localhost (xampp) Server from another computer over LAN network ,
I installed XAMP version: 7.2.10
Also from my local host , I have a php application/page which connects to a page in the internet (hosted outside the local host) and i want to get response from that page through gateway when I call that page by post/get method .
how to do this?My Local Network is limited to internet connection
Bind your apache to the LAN IP(e.g. 192.168.0.XXX, 10.10.1.XX).
Make sure you allow in your firewall inbound connections on port 80 (or whatever the port your apache runs on).
Configure your virtual host with Server Alias
As long as you don't have restrictions on the LAN you should be able to access the local webserver from the LAN using http://
In regards you your second questions, if you query the external page/resource synchronous you will get the response without problems. If you will expect an asynchronous response, you will need to prepare a bit more and expose your apache port to the internet via a NAT port forward(you will need access to the LAN router) and set your callback to the public IP:port/path
I have developed a web application which I want to access from remote machine outside network.
Steps I followed:
Configured my router to forward 8080 to 80 on my private IP.
Created inbound rule for 8080 and 80 under firewall settings.
After these steps followed, I am not able to access Apache with my public ip address on port 8080.
When I check using port checker tool it shows that port 8080 is closed on my machine.
Please help
I have two sites. One is remote (online) and another localhost (on my developer machine).
The remote site in on dedicated IP address XXX.XXX.XXX.XXX and the localhost machine is public IP YYY.YYY.YYY.YYY. The remote site is a wesite running online like any other internet site.
Both remote and local machine are running mysql db and PHP.
What I need is to have the remote site (on the internet, IP address XXX.XXX.XXX.XXX) connect to my local machine (with the public IP YYY.YYY.YYY.YYY) when some specific webscripts are run by visiters to my website.
How do I establish a connection to my localhost from the remote website using PHP?
Please note that I'am asking for the opposite of normal practice of having a local machine connect to a remote machine.
You will need to configure port forwarding or a DMZ on your router. Port forwarding on port 80 will probably be easiest and more secure (it'll stop web traffic on other ports connecting to your PC which a DMZ would otherwise allow).
The process for setting up port forwarding differs from router-to-router, but it should be relatively easy to find in your router's admin panel. Find the private IP of your PC and, in your router's config, set up so all requests on port 80 to forward to the PC's internal IP.
Actually I'm making a web project using Wamp server, and to run the same I access it using the usual local-host address, as we do while building a project on our PC. But to share my project with my friends, I want to make access using the IP address of my computer.
But when I make such an access it is not able to connect, which is not the case with my friend's project.
After I failed accessing using the Wamp Server, I installed Xamp Server, the project can be accessed using local host with both the servers (running one at a time) but not when accessed using my PC's IP address (which I find using http://www.whatismyip.com/)
Please Help me Sort out the problem, so that I can share my project with my friends and get a feedback from them.
First check the Listen directive in apache's configuration file (usually httpd.conf). If it only listens on 127.0.0.1 then it can not be accessed on your network interface.
You can also check it with:
netstat -na
You should see that port 80 is litening on all interfaces as somthing like:
Proto Local Address Foreign Address State
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
If this is the case then you should check the access to your port 80 from the outside world. First of all firewalls can block the access to it. If you are behind a NAT (router) then you should use it's port forwading settings to open port 80 (or other arbitrary port) on the router an forward it to the port 80 on your PC.