Accessing Apache from remote machine outside network - XAMPP - php

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

Related

Accessing php webs app via the public ip of Azure VM

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.

Host wamp virtual host on port 81 and prevent typing port

Hi
I an using a VPS with Windows Server 2012 R2 hosting. I have to deploy web sites on both the IIS and WAMP.
IIS is running on port 80 (default), while I have changed the WAMP port to 81.
I can access my my sites as follows:
I access my IIS hosted sites as:
www.myIISSite.com
while I access my WAMP-hosted sites as:
www.myWAMPSite.com:81
My question is , how can I get rid of :81 after www.myWAMPSite.com while still using both the IIS and WAMP?
Is this possible?
Thanks in advance.
**Thanks for your response. As I asked the same question from my service provider, they told me to purchase an additional IP address for that purpose. I wonder why can't I hide port from the user, i.e. why does the user have to type in port number? While I was working on an open source project where I had to host both the Tomcat server files as well as PHP files, the tomcat server was running on port 8080 on Ubuntu 10 server and I didn't have to type in the port 8080 while opening the jsp pages.
Thanks a lot for your answer anyways.
**

how to host a website using xampp server?

I have created a website for sending emails, it works fine in localhost and in LAN connection, but I'm not able to open my website from another network.
I use my public IP address (found on whatsmyip.org), I have also forwarded port (80) to the server computer in my router settings page.
I'm using xampp version 5.6.3. please help me out with this.
Thanks in advance
Make sure your firewall allows incoming connections from port 80. To do this, open your computers firewall-configuration and create an incoming-rule for port 80. If you are using Windows 8 please refer to this Microsoft-help-page.
To view your website from the internet, these conditions must be met:
Make sure you use the correct ip
Have an ISP that allows trafic on port 80 (thanks to DarkBee)
Forward the port to the correct computer, using the nat of your router
Configure your firewall to accept connections from port 80
Make sure your xampp listens to all ip-adresses (see "Listen 80" in httpd.conf)

Remote Xampp Access

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).

How to run a project running on wamp/xampp server using system's IP address in place of localhost?

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.

Categories