Apache Not Accepting Incoming Connections from Outside of Localhost

apache not accepting incoming connections from outside of localhost

In case not solved yet. Your iptables say:

state RELATED,ESTABLISHED

Which means that it lets pass only connections already established... that's established by you, not by remote machines. Then you can see exceptions to this in the next rules:

state NEW tcp dpt:ssh

Which counts only for ssh, so you should add a similar rule/line for http, which you can do like this:

state NEW tcp dpt:80

Which you can do like this:

sudo iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

(In this case I am choosing to add the new rule in the fourth line)

Remember that after editing the file you should save it like this:

sudo /etc/init.d/iptables save

Apache Servicemix windows - Works in Localhost but not with the public IP address

OK. Found the problem. If you are using a Windows instance in AWS , adding security group alone will not be enough. Log in to the instance, got to Windows firewall and add a new Rule to allow the required port. Should work then

Surprising that its not documented anywhere.

This solution is not just for servicemix , but for everything.

Can't access my xampp server remotely

You need to use your network IP adress instead of localhost (127.0.0.0).

If you are behind the firewall, you need to allow incoming connections for port 80, maybe for mysql port also (if you plan to use remove SQL management software).

Most probably you'l also need to configure your router ( if your have one ), to route all incoming connections from 80 port to your web server subnet address.

Accessing localhost (xampp) from another computer over LAN network - how to?

Localhost is just a name given for the loopback, eg its like referring to yourself as "me" ..

To view it from other computers, chances are you need only do http://192.168.1.56 or http://myPcsName if that doesnt work, there is a chance that there is a firewall running on your computer, or the httpd.conf is only listening on 127.0.0.1



Related Topics



Leave a reply



Submit