Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

no route to host when creating a socket  RSS feed

 
glok twen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i keep getting this error. i know what you're thinking, it's a tcp set up problem. but i can both ping and ssh to the node that causes a no-route error when i try to create a socket via java. is there something else to check?
 
glok twen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it looks like the problem is related to permissions very similar to the attached scenario using isreachable:

http://www.coderanch.com/t/204609/sockets/java/thin-clients-fat-Clients

for now the work-around is to run as root. undesirable indeed. any other suggestions on how to address this without the root solution?

thanks
gt
 
glok twen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
spoke too soon. running as root lets me ping the other node successfully from within java using isreachable. however, i still get no route to host when trying to establish the socket. from outside java i can both ping and ssh to the external node. but from within i can successfully ping but not establish a socket. i'm really puzzled. any ideas?

thanks,
gt
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question: Do you happen to have more than one NIC in the box? And is the target host accessable using all of the NICs?

Henry
 
glok twen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your help.

it turns out the target hosts were running red hat and the security level and firewall settings would not allow anything coming in on the port i was trying to work with. some sort of "access denied" might have been more helpful than no route to host. but who knows, maybe that was by design for the enterprise management setup on orcl linux.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!