Android Question Help with Telnet

Javier Garrido

Member
Licensed User
Hi, for my B4A project I need to have a telnet connection to a computer running Linux. When using ServerSocket and Asyncstream I get these characters "ÿýÿý ÿý#ÿý'ÿý$" instead of the word "login:" , I have tried with charset UTF8 UTF16 ASCII and can't find a way to fix it. I need an example for help, the server can't modify it. Thanks.
 

jerry07

Member
Licensed User
Longtime User
Hi, for my B4A project I need to have a telnet connection to a computer running Linux. When using ServerSocket and Asyncstream I get these characters "ÿýÿý ÿý#ÿý'ÿý$" instead of the word "login:" , I have tried with charset UTF8 UTF16 ASCII and can't find a way to fix it. I need an example for help, the server can't modify it. Thanks.
Telnet is not just a simple socket connection. Characters you are seeing are part of RFC5198 protocol.
 
Upvote 0

jerry07

Member
Licensed User
Longtime User
Ideally if there is telnet library in b4x or java that you could use would be best. But I don't know of one and quick search have not shown anything meaningful.

Link below is not a solution but it may give you some ideas.

Not clean solution but can you have app on Linux that runs telnet and you just pass commands between client and server?
There is python library for telnet (telnetlib), you maybe able to do what you need.

original telnet protocol is RCF854 and RFC5198 is updated for unicode.
 
Upvote 0
Top