• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

not able to connect...

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic