1/6/2020 7:28:18 AM
yes, because if client can't connect server it returns "Connection refused".
(if you get only "terminated", try it again)
- run server part first
- then run client part from different command line, because .accept() wait and block executing rest of your program. Or do it on another thread.
is this possible in solo learn
i changed ServerSocket to Socket but it doesn't work
zemiak you run server class first and then run client class?
GET THE FREE APP
Learn Playing. Play Learning
Send us a message