Forum Moderators: bakedjake
I'm attempting to run Apache on Red Hat Linux 7.2. I have a cable internet connection. I can access the server fine from the computer that Apache's running on via [localhost...] or the computer's IP address. However, when I try to access it with another computer, hooked up to the same hub, it won't load it. I thought mabye the firewall was keeping other computers out, so I disabled it completely with gnome-lokkit. I don't know if the problem is with RH, Apache, or me. Let me know what additional information I need to provide.
TIA,
Joshua
However, when I try to access it with another computer, hooked up to the same hub, it won't load it.
Are you trying by IP or name. If it works by IP but not by name then you would configure the other computer to resolve the hostname correctly. You can do this by adding an appropriate line to the hosts file on each computer in your network that you want to access the server from or you could setup a DNS server on the linux box and let other computers in your network use that DNS server to resolve hostnames.
Andreas
As root type in 'ifconfig eth0', that is eth + zero. You should have a block of information printed out from that. Grab the IP number from:
'inet addr:' if you are using a typical DHCP network it could look like "192.168.1.xxx".
Try using that IP on the Red Hat box and see if you get the same results as when you use localhost. Does [localhost...] = http:// [your local IP]? If so, try using that IP to connect to your redhat machine from the outside.
As root type in 'ifconfig eth0', that is eth + zero.
Joshua
/sbin/ifconfig -a
and see what it gives you. I guess the point of all of this is just to get your IP address so that you can try it from the other machine like [192.168.1.4...] or whatever. You can get your IP addresses in other ways, like /proc/net/arp or something, too.
Sometimes the problem is that your firewall is keeping the traffic out or you don't have apache configured to bind to all (any) interfaces. (See the BindAddress directive in your apache config, but I would be surprised if that's the problem.)
What kind of error do you get when you try to access the page? Does it take a long time and then say that it couldn't contact the server, or does it say that the connection was refused, or do you get a 404 or 500 error? The more details you give the easier it is to figure out.
amoore:
What kind of error do you get when you try to access the page? Does it take a long time and then say that it couldn't contact the server,...Yes, it just sat there for awhile then said it couldn't contact the server.
sun818:
How are your other computers connecting to the Internet if you are not using a router?
Like I said, it seems to be working now. We'll just wait and see.
Joshua
So, all your computers are broadcasting form the same IP? If so, that is your problem.