Java send data through serverSocket

So.. I got this listener for a remote application telnet server https://pastebin.com/ihfk7F4m and this input handler https://pastebin.com/n8x5i0L6 the problem is, that once you connect to the listener on port 999 for example using telnet, it seems that sending data through the serverSocket messes up any Strings.... and puts questionmarks in front of the username for example or password which is a writer.println statement.... Someone pointed that sending data through a serverSocket should not be done but people are literally making chatrooms with that type of code and it works just fine, maybe the issue is printWriter itself, I dont know. Someone help me please! If anyone has a better solution than serverSocket please let me know
Pastebin
asdf - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
vb - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
4 Replies
JavaBot
JavaBot8mo ago
This post has been reserved for your question.
Hey @netty.bootstrap! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
Cuz you dont need code to connect to the socket you just use a telnet client or telnet command to use it
JavaBot
JavaBot8mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?