Recommended Answers
Jump to PostIf you do not get an exception at the Socket statement, then the println statement after the Socket statement should print out a message.
So either the Socket statement throws an exception and the printStackTrace() statement in the catch block prints out a message or the println statement after the …
Jump to PostWhy isn't something printing? Add more printlns to see where the code is executing.
Jump to PostAll the printed messages should be unique so you know which println printed the message.
You have two printlns that print the same message.Why do you have this statement?
et.getStackTrace();
Jump to PostI've never used that method. How does your code use it?
What does your code do with the value returned by that method?
Jump to PostIn case of a GUI you need to define another method parametres like an another instance of variable to use.. try that it will work.. honestly I never tried an UDP with TCP however it will work if you initiate a new instance for the GUI
All 41 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.