telnet

How do I connect to a Telnet Server in c#?

I am having my OJT and my current task is to do an FTP Client Server connecting to a telnet Server. This is my first time doing this kind of a program. Any idea how I can do this in c# windows app? how do i establish a connection to telnet with completeauthentications? Are their any open source libraries to help me do this? Any help with...

read all data recieved from a socket in PHP

I'm writing a simple telnet client library. I open sockets using fsockopen() and read and write to the socket using fgetc() and fwrite(). I use fgetc() instead of fread() to handle Telnet special commands and options like (IAC, ...). the problem is that most of times I'm reading from the socket, it takes too long to return. as I have pr...

Ruby telnet hangs during the enter password prompt

I am extremely new to ruby and just trying to use it to do some basic scripting. Namely telnet into a machine and use the dos ftp client to pull some files over. The problem that I have is when I try to telnet into the machine manually (from command prompt) I get the following message: Welcome to Microsoft Telnet Client Escape Cha...

Ruby scripting - Telnet Hangs During Login

I am trying to do some basic scripting using ruby to log in to a windows machine via telnet and pull some files over using the dos command line ftp. When I do this manually everything goes swimmingly but when I try it via ruby I'm getting an error in the login call. Here is my test program in its entirety: require 'net/telnet' tn = Ne...

How I start my winforms app via telnet?

I have a windows forms application on a client machine. I am trying to log in via telnet, shut it down, update some files, and restart it. Using cmd on the client machine and typing in MyApp.exe works great to start it. But if I do this in the telnet window something odd happens: The application starts in as far as it is now in the pr...

How to preview data from COM port with telnet or other windows tool

I would like to see what data come from COM serial port. Is it possible to do it with telnet or other windows tool? And if so, how to do it? ...

Telnet against Aastra Mx-One

I am trying to connect to an MX-One pbx with telnet. The strange thing is that when I am using hyperterminal I can connect and I get the login: promt in return. It just works as does the DOS telnet app. But when I try the login with our C# application (which is used against the Aastra MD110 pbx, to collect the same data with the same f...

What is the best telnet software other than Putty

What is the best telnet software other than Putty ...

How can I open a telnet connection and run a few commands in C#

IS this straightforward? Does any one have any good examples? All my google searches return items on how to make telnet clients in dotNet but this overkill for me. I'm trying to do this in C#. Thanks! ...

remote execution in windows server via telnet

I need to start a process and keep it running on several remote windows (03 and 08) servers. When I telnet in and start the process and sign out of my telnet session, the process dies. I changed the registry settings so the pertinent tlntadmn output looks like this: End tasks on disconnect : NO restarting the service and/or reb...

Why is the "terminal speed" of a native linux telnet client 0,0 when spawned from Java (and how can I fix it)?

I'm unable to login to an HPUX host using telnet when the telnet process is created by a Java program. When I telnet to the HPUX host from the command line (from bash), I am able to login and use the session. When I spawn the telnet process from Java, something strange happens. I am prompted for the username and submit it. I also get t...

How do I send a TAB using Perl's Net::Telnet?

I am using Perl's Net::Telnet module to access an application available over telnet. I am using $telnet->waitfor() and $telnet->print() methods to determine the form received and submit appropriate data. One of the forms has two options - "Find" and "Cancel". In a terminal, I can just hit TAB to choose "Cancel" and ENTER. But within ...

How to unsupress local echo

I am trying to suppress the local echo of a password in a telnet session by sending 0xFF 0xFD 0x2D (IAC DO SUPPRESS_LOCAL_ECHO). This works fine. My trouble is enabling the local echo after the password. I am sending 0xFF 0xFE 0x2D (IAC DONT SUPPRESS_LOCAL_ECHO). But I don't see any of my commands that I type afterwards. I am usin...

how do i reduce timeout on unix telnet on connection

I have a unix shell script which test ftp ports of multiple hosts listed in a file. for i in `cat ftp-hosts.txt` do echo "QUIT" | telnet $i 21 done In general this scripts works, however if i encounter a host which does not connect, i.e telnet is "Trying...", how can I reduce this wait time so it can test the next host...

Hpux telnet using socket

o Sun OS, UTS, AIX etc. But, when the same program is run with HP UX on the other end, we are unable to receive the response from the HP UX box (B.11.31 O/S). sSocket = socket(AF_INET,SOCK_STREAM,0); connect(sSocket,(struct sockaddr *)&sin,sizeof(sin); ierr = read(sSocket,szBuffer,BUF_LEN-1); When the read is called, we get jun...

Why will socket connection to port 23 not work?

I have this small test socket connection class:- import java.net.Socket; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.IOException; public class TestTelnet { public static void main(String args[]) throws Exception { Telnet telnet = ...

Looking for Java Telnet emulator

I am writing a back end program that telnets into a server, runs some commands and saves all the output from those commands. Something just like Expect. I would like to use an open source solution that is well supported and runs with JDK 6. I have found 3 options so far and would like some help deciding which one (or a better sugges...

C# Telnet Proxy

I am working on developing an extensible MUD/ORPG game server framework in C#. As part of the package, I would like to include a SOCKS5 proxy client that could be installed on user's machines. This proxy client would sit between the user's standard telnet client (zMUD, GMUD, MUSHclient, or just plain telnet) and the MUD game server, and ...

Connect to a virtual terminal

I need my application to connect to a network virtual terminal. In other words I need my app to talk via tcp/ip to a server and exchange data & initiate commands. What does my application require for this? Any native windows api I can use for this. Thanx in advance. ...

Example of messages to send to a telnet server

We have a unix box in our ofc. We usually telnet to this box and initiate commands on it. We usually do this from windows clients from the command prompt using the telnet.exe. We simply provide the ip of the unix box and it loads up a screen where we provide the login credentials. There is a default message before the login prompt saying...