Configure firewall to enable XAMPP working over LAN - xampp

When I turn off the firewall, I can access my XAMPP website through other LAN computers. When I turn on firewall then I cannot connect to the machine anymore. Could someone tell me what's happening?
my os is windows xp. thanks.

Go to Control panel - > go to Windows Firewall -> then Advance Settings ->
Click Inbound Rules
right Click the inbound rules and select "New Rule..."
select option port and click next
select all local ports or your port number for apache server. and click next
select option allow the connection and click next
next
Give name Allow All Local Port For Xampp
Try This, I hope it will Work for you.

I understand this is an old question and related to Windows XP but now for users using current OS like Windows 10 the option that worked for me is that Inbound Rules Profile could be set to Public for Apache Http Server which is set to Private by default.
The profile could be set in 'Advanced' tab of Apache Http Server Inbound Rules properties as shown below (Properties Dialog box could be opened by Right Clicking on Apache Http Server and select Properties):

Well , first of all, firewall on host is blocking your connection. If you are using Windows firewall or any other firewall You need to make an excaption rule for XAMPP.
So, on computer where is web site hosted go to Control panel-> Windows Firewall and uncheck Don't allow exceptions checkbox. Now open Exceptions tab and click on a button Add program and locate Xampp and Apache. Add them to firewall exception rule.
Maybe you should do this test on some Virtual Machine (VMware, Virtualbox..etc) becouse opening ports and adding exceptions if this machine is connected to Internet is not secure.

In my case, (windows 10 and xampp v3.3.2)
1. Open Control Panel
2. Search for windows fire wall
3. Click Advance setting
4. Click inbound rules
5. Allow all blocked rule in name Apache HTTP Server and mysqld

Related

How to clear DNS cache of internet provider

I changed the dns of my website and i noticed that it still not applied yet but after awhile I opened my website using VPN from other country and the dns was changed to my new server.
How to clear the local internet cache of the internet provider ?
So, a really good way to check if a DNS is updated globally is to use googles DNS checker tool. You can get to it through this link
https://dns.google.com/
Go to that website and type in the url of your website, and make sure that it has the correct IP address.
If that worked, you can be confident it is a problem with your local cache. You can use the google server dns instead of the default server your computer comes with, which will match the server you just checked with the website.
For WINDOWS 10:
Open Control Panel
Click Network and Internet
Click Network and Sharing Center
Click Change adapter settings
Right-click the network interface connected to the internet and select properties
Select and check the internet protocol version 4 (TCP/IPv4) option
Click the properties button
Click use the following DNS server
type 8.8.8.8 for preferred and 8.8.4.4 for alternate (these are the addresses to google dns servers, the ones you just checked with the webstite earlier)
For mac:
Go to system preferences
Select network
Click on advanced
Select DNS
Select the default dns server ip address and click - at the bottom of the DNS servers box
Click on the + sign at the bottom on the DNS servers box and enter
8.8.8.8 and 8.8.4.4
Click ok
Click apply
Credit:
https://www.windowscentral.com/how-change-your-pcs-dns-settings-windows-10
https://www.my-private-network.co.uk/kbhome/how-to-set-google-dns-on-your-mac-os-x-computer/
Google is generally very quick in updating their DNS, so it should be more than a few minutes till your server is up and running with the new DNS.

Windows 8 can not access the site of wamp from other computer on local network

I have installed
windows 8
Wamp server
here i have added my local site but as you know i am able to access
http://localhost/test
from the this computer where i have installed wamp the ip address is like=10.0.1.1
now from thei computer i can acess
http://10.0.1.1
but from other computer i can't access this 10.0.1.1 but it's connection is fine i can ping it
thanks
The most likely cause is you're being blocked by the firewall, make sure to add an exception to your firewall exception list to allow the connection.
i solved the problem by disabling the firewall for port 80.
Go to Search on right side of windows.
search "firewall".
open the "firewall with advanced".
go to inbound rules.
click on "new rule".
select the "Port" option.
click "next"
select "TCP" option.
select "Specific local ports:".
type "80" in next text box
click next.
select the "Allow the connection".
click "next".
click "next".
give the name "Port 80 Allow Rule".
click "next".
Note: this is not a secure way. delete this newly created rule when you complete your work.

telnet not working though server and client are on

i use a pc with windows 7.i tried to telnet to another host but it didn't work even though the host had enabled telnet server and i had enabled the client.So, i enabled telnet server on my pc and telnet to my pc. But this too failed with the error
Connecting To 172.17.4.155...Could not open connection to the host, on port 23:
Connect failed
Then i checked the tcpdump with ubuntu on a virtual machine. The dump said that connection closed with a reset flag sent. So, i checked if there was telnet server listening on port 23, using 'netstat -a' on windows. There was no server listening on port 23. This is weird because in control panel's Programs and Features it says that client and server both are runnning.
Can anyone tell me what is the problem?
Click Start, and then click Control Panel.
On the Control Panel Home page, click Programs.
Under the section titled Programs and Features, click Turn Windows features on or off.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
In the Windows Features list, select Telnet Server, and then click OK.
Ref: http://technet.microsoft.com
Thank you sir for the help....But the problem was something else...What really was happening that though the telnet server was installed, it was off in the services i.e. it was disabled...Open the services using task manager and there click on services tab...then go to telnet and change its type to manual and start the service

windows server 2008 r2 - can't get apache to run on port 80

I have a rackspace cloud server running windows server 2008 r2. I've uninstalled IIS because I want to install Apache.
I've installed Apache but it fails everytime i try to run it when i listen to port 80.
I've run the command netstat -aon|finderstr "80" and i see the following:
C:\Users\Administrator>netstat -aon|findstr "80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
TCP 10.180.15.249:139 0.0.0.0:0 LISTENING 4
TCP [::]:80 [::]:0 LISTENING 4
UDP 10.180.15.249:137 : 4
UDP 10.180.15.249:138 : 4
So what are these things running on port 80 and why can't i get apache to start? Is there an alternative port for to run apache under that will work just as well as 80?
To enable port 80 on Windows Server 2008 R2:
NOTE: This assumes that IIS is not installed. I added this firewall rule to enable Apache to accept connections on port 80.
Click Start->Control Panel->Windows Firewall
Click "Advanced Settings" in the left panel of Windows Firewall
Click "Inbound rules" in the left panel of Advanced Settings
Click "New Rule..." in right "Actions" panel
Select "Port" and click "Next>"
Select "TCP", then "Specific local ports:" (should already be selected)
Type 80 in the box (just the number) and click "Next>"
Select "Allow the connection" and click "Next>"
Leave all profiles checked and click "Next>"
Enter a name and click "Finish".
Your server should now be able to accept connections on port 80.
On a Windows server running MSSQL, disabling MSSQL ReportServer (display name: SQL Server Reporting Services (MSSQLSERVER)) services and World Wide Web Publishing services, resolved the problem for me. No need to fiddle with firewall settings or changing default port configurations.
I am running a windows 2008 r2 with IIS and sql server. I added an additional IP address to run apache and configured IIS to bind to one of the IP addresses. I ran into the same problem and found suggestions about disabling SQL reporting services and WinRM. These solutions did not work for me.
There are many different services that can use the http server api(http.sys) and will then show up simply as pid 4.
I found the answer at the link below. The essence of the link is to go to a command prompt.
Type netsh press enter.
Type http and press enter.
add iplisten ipaddress=x.x.x.x
http://msdn.microsoft.com/en-us/library/cc307219(v=vs.85).aspx
There is also a method to disable http.sys in the registry but I do not know what the ramifications of that might be.
I hope this helps someone else so they don't waste as much time as I did trying to find the resolution.
I find that I can successfully add the firewall rules to make my own server run on port 80 within the vshost visual studio debug environment but when running as a service it only works on local host from the machine and not from external hosts.
Very frustrating. Seems that there are possible conditions in the firewall which are not exposed in the Windows Firewall configuration interface very clearly.
With IIS installed you need to change bindings on web sites in IIS so that none uses "all available addresses":80 binding. Either change the ports, or change listening IP addresses.

Cannot access site hosted on IIS 7 from LAN with server firewall on

I have an MVC site hosted on IIS 7. It works fine when accessed from the server itself.
However when I tried to access it from the same LAN as the server's the website wasn't reachable.
Next I disabled the windows firewall on the server and the site was accessible from within the LAN.
I would like to have the firewall enabled AND be able to access the site.
What do I have to enable in the firewall?
Thanks.
Ok, it was an old question, but I just found the inbound rule you need turn on. Hope the screenshot can help others in future.
Win7-firewall-inbound-BranchCache Content Retrieval (HTTP-In)
Try opening the port in Windows Firewall. Go to "Advanced Settings" in the Firewall setup and check the inbound rules and add the port if necessary.
I had the exact same issue, but the firewall in my system is managed by ESET smart security. In my case, I was not able to access the site from my machine with the firewall enabled. I wanted to add my answer so that it helps someone who is facing this issue with ESET.
Initially, I disabled the firewall and accessed the site.
While accessing the site, I checked the ports being used for the connections using "ESET SysInspector -> Network Connections". Found that my site's port was being used by the program "system".
Then I went to ESET's "Advanced setup -> Network -> Personal firewall -> Rules and zones". Clicked on "setup" under "zone and rule editor".
Click on "Toggle application tree view". Then under the column "Application/Rule", expanded "System" and found the rule "Deny communication for System" which was set to "Deny" for "Internet in". I set it to "Allow" for my site's local port and clicked "Ok" all the way out and was able to access my site with firewall enabled.

Resources