Sign in to follow this  

[.net] .NET and TELNET ?

This topic is 4517 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. I want to have an access to telnet protocol with .NET and C#. Cant find anything in MSDN. There is Jscape namespace for .NET with Telnet class but it cost money ;( Any ideas ?

Share this post


Link to post
Share on other sites
telnet is practically a straight-through protocol, so it isn't too hard to implement yourself. http://www.faqs.org/rfcs/rfc854.html describes the protocol. Or if you want something to base your code from, search for an open source telnet client in another language you know. A google search for "GPL telnet client" should give you a couple good programs to base your code from.

Share this post


Link to post
Share on other sites
Now, what service will your telnet client be connecting TO? "telnet" is often used as a synonym for "bidirectional ASCII TCP stream", when it technically refers to a protocol which can be much more complex.

Share this post


Link to post
Share on other sites
I just want to write a program that every 5 minutes will automatically make connection:

telnet 123.45.678.101
username: xxx
password: xxx

I'm connected to the internet trough university proxy server. This server disconnects my pc from the internet every 10 minutes or so. So I want to write a program that will automatically reconnect my pc every 5 minutes.

[Edited by - xxx_shinobi on September 3, 2005 12:21:03 AM]

Share this post


Link to post
Share on other sites
It would just be like setting up a normal server using .NET, but you'd be dealing with the telnet protocal. After a quick google search, I found this article that covers it quickly and a library to help you out. A multiplayer text-based game would be a pretty neat thing to do.... Good luck!

Share this post


Link to post
Share on other sites
You're using telnet to login to a remote server? You do reallize that you are essentially broadcasting your password into the open, right? Telnet does not encrypt anything, not even passwords, it just sends it as plain text. An alternative would be SSH if SSH is available on the server.

Share this post


Link to post
Share on other sites

This topic is 4517 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this