Forums Register Login

A Simple Telnet Session

+Pie Number of slices to send: Send
Hi,
How do I open a simple telnet session with a server?
My application should be able to ask for a username and password and login to a remote machine. How do I do it?
Also, is it possible (given that I make GUI for it) to write a telnet client? Something that provides a command interpreter, sends the commands to the server, reads the response and displays it in an output window?
I mean how do we "maintain" a telnet session with the server?
+Pie Number of slices to send: Send
It is possible to write a telnet client ( GUI or whatever it is , )
you need to have a server ( obviously the Telnet server ) running at a known IP address, then you can connect to it using a Socket instance.
once you are connected to the telnet server, it send you some messages along with username prompt, after recieving these messages, you need to send a responce. all this is usually done with the help of IO Streams. and Synchronization must be ensured to prevent unforeseen things.
Goodluck
NaNdU
+Pie Number of slices to send: Send
before sending username/password data you willl need to perform option negotiation to agree on the terminal settings to use. see RFC 854 and RFC 855 for more information on option negotiation.
also the Telnet component included in iNet Factory can handle much of this for you
for more information see
http://www.jscape.com/inetfactory/
+Pie Number of slices to send: Send
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1634 times.
Similar Threads
How I connect to remote Unix Box from standalone java application?
Telnet and stuff
session Handling
How do I open a telnet session on a RS-232 serial connector?
Access telnet server via browser
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:24:40.