Why didn't u used scanner class to read data from the keyboard And why do we need printwriter class , it is for file handling , correct me if i am wrong
@@DavidEspinosa21 Separate computers mean that if we are client and google is server then we use Ip address of google. In this way one computer is our's computer and second computer is where the google server located(in America).
The errors arise due to the following two statements are missing:
On the client side: soc.close( );
On the server side: ss.close( );
Really good course on sockets
well played keep it up!
Make sure to check parameters especially on the client BufferedReader objects
Why didn't u used scanner class to read data from the keyboard
And why do we need printwriter class , it is for file handling , correct me if i am wrong
I don't get the response from server. No exceptions, just "Enter a string", I type "asdasdasd" (press Enter) and where is no response from server.
Me
too
you type what? xD
same here
just kidding. i forgot to add the two input stream reader lines on the client. rip
Thanks, It was really helpful
once the connection is established, Can they talk back and forth? or is it that server and client get 1 message each per connection?
Once you established the connection, you can keep them connected and make more than one echo by while loops.
does it work locally?
Not getting a response from the server even though I copied the code line by line.
str (same name) in both client and server
thanks!
Not getting response from the server
Me neither
Hi! How would it be having the client and the server in different computers?
i think must connect to same network and change the localhost to your ip network
Could this be done from two separate computers?
Yes
@@SK-wt8yd Any idea how?
@@DavidEspinosa21 Separate computers mean that if we are client and google is server then we use Ip address of google. In this way one computer is our's computer and second computer is where the google server located(in America).
@@mianbilawal5802 Does it mean we'll be using the IP address of the server when connecting it? Should we use a private or public IP address?
such a useless video,u didnt know how to explain this