|
Author |
Message |
|
|
Posted Aug 22, 2008 at 2:06:00 PM
Subject: Cannot connect to server from other computers in network.
I am new to linux...
I set up a server using Apache Tomcat 5.5.26 using jdk 1.6.
Also created environment variables CATALINA_HOME and JAVA_HOME as told.
I tested it to see if the server is working by typing in http.
address on the same PC browser
(http://localhost:8080 or http://ipaddress:8080),
Tomcat server's main Page I can see.
Even I developed sample project and deployed it on the server.
I can access that one also from server PC.
But when I try to access it from another pc on the network it gives error as
Can't establish connection with the server at ipaddress:portno
I asked our admin to disable the firewall, then also the problem cant be solved.
Do I have to go for some more configurations to access server from other computers.
I am using fedora core 9
My IP address is reachable from the Internet
I have DHCP
my mask is 255.255.255.0
I installed Tomcat on /mnt directory and jdk on /usr for convenience.
can anyone please help?
|
Khabi
Joined Apr 21, 2008 Posts: 110
Other Topics
|
Posted:
Aug 22, 2008 10:54:47 PM
Subject: Cannot connect to server from other computers in network.
I know you said you disabled the firewall, but did you disable the on the local machine or on a router? If memory serves, Fedora likes to install one by default.
Also, is tomcat only listening on localhost, or is it listening on all IPs?
try doing:
netstat -apn | grep 8080
you want to see output like:
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 16643/java
if it says:
tcp 0 127.0.0.1:8080 0.0.0.0:* LISTEN 16643/java
its only listening on localhost. You'll have to edit server.xml (I can't remember the right syntax to make it listen on all ips off the top of my head tho).
|
Neil
Joined Aug 22, 2008 Posts: 3
Other Topics
|
Posted:
Aug 25, 2008 6:25:50 AM
Subject: Cannot connect to server from other computers in network.
Thanks for the reply Khabi.
I tried the command netstat -apn | grep 8080. It gave the output like this ---
tcp 0 0 :::8080 :::* LISTEN 2682/java
How can i make changes to this one?
|
Neil
Joined Aug 22, 2008 Posts: 3
Other Topics
|
Posted:
Aug 25, 2008 6:27:36 AM
Subject: Cannot connect to server from other computers in network.
Hello khabi after disabling the firewalls on almost all pcs even on server i managed to run my server.
But you gave me that command.
Its output was not as you given to me. I have given it there.
Where can i find that configuration file.
[Modified by: Neil on August 25, 2008 08:34 AM]
|
Shashank Sharma
Joined Jan 01, 1970 Posts: 1546
Location:New Delhi, India
Other Topics
|
Posted:
Aug 25, 2008 4:31:54 PM
Subject: Cannot connect to server from other computers in network.
|
Linux_Hawk
Joined Jul 12, 2008 Posts: 26
Other Topics
|
Posted:
Aug 26, 2008 1:39:30 PM
Subject: Cannot connect to server from other computers in network.
- Quote Neil:
Hello khabi after disabling the firewalls on almost all pcs even on server i managed to run my server.
But you gave me that command.
Its output was not as you given to me. I have given it there.
Where can i find that configuration file.
- Quote Neil:
[Modified by: Neil on August 25, 2008 08:34 AM]
My recomendation is the Netgear WNR854t Next N Range Max wireless Ruter/Gateway & fire wall.life long Netgear customer and have yet to be sold a defective peice of equipment by them) I beleive that centralizing network security at the Router is the best way to protect any size network.
http://netgear.com/Products/RoutersandGateways/RangeMaxNEXTWirelessRoutersandGateways/WNR854T.aspx
I have had tmy WNR854T For aabout two and a half mpounts now and Haven't had one problem with it. Thereason I recommend the WNR854t Is that is one of a limited number of Router, Firewall,and gate way products that Supports, wINDOWS, LINUX, uNIX AND mAC os x.
|
Khabi
Joined Apr 21, 2008 Posts: 110
Other Topics
|
Posted:
Aug 26, 2008 10:45:44 PM
Subject: Cannot connect to server from other computers in network.
- Quote Neil:
Hello khabi after disabling the firewalls on almost all pcs even on server i managed to run my server.
But you gave me that command.
Its output was not as you given to me. I have given it there.
Where can i find that configuration file.
- Quote Neil:
[Modified by: Neil on August 25, 2008 08:34 AM]
Neil, sorry I didn't see this sooner. That command I gave you was assuming you were only using IPV4 on that box, you're using V6. If memory serves that line you posted is pretty much the same as the one I did. You shouldn't have to worry about changing server.xml.
Sounds like there was a firewall somewhere that was blocking you.
|