Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

clients cannot connect to server on another machine

Sat Jun 12, 2010 4:49 pm

Hello
I have written server/client programs in java. When i 'm executing my server and client on the same machine then , my client program can easily be connected to the server on the same machine , but when Server is running on one machine and client on another machine , client cannot connect to the server and creates an Exception that "No route to host".
I've tried with disabling the firewall and changing the port , but still the problem persists.

Anybody suggestions are welcomed...



Re: clients cannot connect to server on another machine

Sat Jun 12, 2010 10:17 pm

can you ping it from your cmd ,
This project should works with you:
finished-projects/java-chat-t644-20.html

Re: clients cannot connect to server on another machine

Sun Jun 13, 2010 11:02 am

The problem is solved ....
Actually there was a problem with SE Linux Management enabled in Fedora 13 on which the server is running and because that property enabled, it wasn't allowing the clients to connect to the server....
But when I disabled the System Default Enforcing Mode in SE Linux Management , clients can easily be connected...............

Thanks for all the suggestions
:grin:

Post a reply
  Related Posts  to : clients cannot connect to server on another machine
 how to connect client on one machine with server     -  
 Need Help for Java Chat - one server multiple clients..     -  
 HELP CONNECT SQL SERVER 2005 WITH PHP 5.2.6     -  
 How to Connect to MySql Server     -  
 How to connect two computers and connect them with Internet?     -  
 Rotar Machine     -  
 Rotor Machine Java     -  
 machine learning java libraries     -  
 Support Vector Machine coding on Matlab...     -  
 Applet Dice Game Fruit Machine simulation     -