• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unable to connect to tomact6.0 server from a different computer on the network

 
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all of you. My name is chaitanya. recently i discovered a problem while using tomcat6.0 web server.
previously i used apache geronimo application server. i was able to connect to the server from a different computer on the network while using geronimo server.
now i migrated to apache tomcat6.0 server. when i am trying to connect to the server using a different computer on the network, i am un able to connect to it.


I thought that there is a problem in the network connection. I checked the network connection its fine. I once again installed geronimo server and tried to connect to the server. I was connected. therefore i discovered that there is no problem with the network connection.

once again i tried to connect to tomcat server from different computer. it is not getting connected.

tomcat is running on 8080 port. when i am trying to connect to it from local system as http://localhost:8080/App it is getting connected. when i am trying to connect to it from different computer as http://<my_ipaddress>:8080/App it is not getting connected.

please anybody help me in this regard.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the tomcat machine have a firewall which is blocking 8080?
I have not used geronimo. Did it also run on 8080?
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am able to reach the machine using geronimo server. but with tomcat i am unable to reach the machine
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you check the firewall for blocked ports?
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i dont know about it. please sir tell me how to check.
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
from command prompt type the following command

telnet <ipaddress>:8080

and see what response you get, if its a failed response means that particular port is blocked.
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sir i have done like this

telnet 192.168.0.144:8080

i got the following message

Connecting to 192.168.0.144:8080...Could not open connection to the host, on port 23: Connect failed
 
Swastik Dey
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It means the port 8080 is blocked through some firewall settings. From network properties you need to disable the firewall or you can change the port number of tomcat server.
 
Ranch Hand
Posts: 45
Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anusha,
Run telnet command as
telnet ipaddress 8080
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have done sir.
telnet ipaddress 8080. again i got the same error message
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have changed the port number from 8080 to 8081. but i am unable to access the server from different machine
i have turned off the windows fire walls in sever machine. now i am able to connect to it through a client system. but this is too risky process. the server machine will be at risk. is there any other way to do this one.
please anybody guide me
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need not bring the whole firewall down. Just open the required port.
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sir i dont know how to open the required port please help me.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which OS you are using?
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its Windows.

anusha chaitanya wrote:
......i have turned off the windows fire walls in sever machine



anusha chaitanya wrote:
sir i dont know how to open the required port please help me.



Come on anusha chaitanya. Dont you have net access? Dont you know how to Google? http://faq.javaranch.com/java/SearchFirst
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sir i have searched in web, i have found the related information but it is not working.

in windows web site i have found some information.
there it was said to- go to firewalls settings>exceptions>add port> then open the 80 port. i have done as it was described. but it is not working sir.

is there any other idea.
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

anusha chaitanya wrote:then open the 80 port



As I remember you have an issue with port 8080 not 80. Am I correct?
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes sir, i have problem with port 8080
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In this case you should open port 8080, not 80 as you described above
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but in the forum it was said that you need not enter 8080. just enter 80. k sir i will try that one olso and i soon soon inform you
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everybody, thanks for all of you for being with me and suggesting me, the problem is solved...i turned off the windows firewall settings.
 
reply
    Bookmark Topic Watch Topic
  • New Topic