This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Sockets and Internet Protocols and the fly likes not able to connect... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "not able to connect..." Watch "not able to connect..." New topic
Author

not able to connect...

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250
hi

in a client/server application, i can connect many client to the server


Client class



now i try to connect to another server after 10 second...
i'm able to connect to it... but the server don't respond...


Server main class (commnet server 4444 to test my client...)


server code


ServerThread class


i start my server:

server run, wait connecting....

i start my client:

try to connect to 127.0.0.1 to portt 4444
Entree: Try: 1
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 2
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 3
try to connect to 127.0.0.1 to portt 4444
Entree: Tentative : 4
Essai de Trya� l'hote 127.0.0.1 au port 4444
Entree: Tentative : 5
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 6
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 7
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 8
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 9
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 10
try to connect to a new server...
Entree:

i type some text:fsdfsf

nothing is displayed on client and server side...

any idea?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to connect...