aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes BufferedReader and Socket trouble Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "BufferedReader and Socket trouble" Watch "BufferedReader and Socket trouble" New topic

BufferedReader and Socket trouble

David Vallejo

Joined: Feb 12, 2013
Posts: 1
I've been trying to fix this code for some time now and it still doesn't work. I want to the client to send some text to the server, and for the server to respond with hardcoded text from an array. I can get the server to receive and display text from the client, but not vice versa. My command prompt freezes up as well after you write two lines to the server, which may be because of the text from the array being sent from the server. Sorry if the code is a bit sloppy.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39547
Could this be the problem? Don't println to a Socket

Ping & DNS - updated with new look and Ping home screen widget
It is sorta covered in the JavaRanch Style Guide.
subject: BufferedReader and Socket trouble
Similar Threads
cleint-server interaction
How do I run a java file inside JSP?
port number
Problems getting response from server
Running a client/server apllication