I've recently started messing around with Java sockets and telnet...
I want the user to be able to connect to the server, just type a letter and have it sent to the ... |
I've written a socket listener in Java that just sends some data to the client.
If I connect to the server using telnet, I want the server to send some telnet option ... |
i'm writing a java code that connects and executes commands in a telnet based equipment.
when i login, appears a message like this:
Trying 10.11.115.160...
Connected to 10.11.115.160.
Escape character is '^]'.
the problem is that ... |
So, I pass data in xml via socket. When I have run server side, I open cmd and execute command "telnet localhost 999". In this moment new thread are started and ... |
I am using a general purpose apache commons library to do the boring networking management so the user can telnet in and start typing in commands to my java command processor. ... |
I'm trying to use Java to read the banner from a telnet session. Currently, when I try to "talk" with the telnet machine I end up with nothing. Please do not hesitate to email me with any comments or suggetions. Thanks, Landon Manning yandonman@hotmail.com In my method I do the following: . . . TelnetModule myTelnetModule = new TelnetModule() myTelnetModule.connect("HostNameWithTelnetRunning"); myTelnetModule.getBanner() ... |
Has anyone out there written or know of any telnet programs written in Java? I am currently writing a socket listener and want to emulate most of the functionality of telnet with some proprietary functionality but i have been having some unexplained behavior. I think it relates to Terminal types. When i telnet into my listener from a windows client, you ... |
|
Hi, I'm urgently looking fot the help.. if some has faced the same problem pls. help 1)I want to connect to the remote server through telnet port 23 2)Want to execute some linux commands automaticaly which i had specified in my programe 3) and disconnect I have creted this programe to some extent ... but facing some problem especially in reading ... |
Hi all, I am looking for a (commercial or free) class which provides a set of methods for performing telnet communication tasks such as connect, login , send, receive, etc. Until now I have tried out Jscape iNetFactory's QuickTelnet and Telnet classes, but they do not fit my application. I also tried out the AdventNet Telnet class, but there were other ... |
|
|
Open source Java telent clients are easy to come by. I don't see any servers out there. Probably because there's already established implementations for every operating system, the fact that server is tightly bound to the operating system due to user authentication and process control making Java a poor choice for implementation and because telnet is going the way of the ... |
|
|
Hello, I think you might be just getting disconnected from the respective server ie smtp or pop. coz the these servers connection is not persistant .. probably you need to code in such a way that you need to connect to the server again after a random amount of time.. check it out.!! Ranganath.S |
I need to write a program similar to a telnet server. A telnet server asynchronously reads data from a socket and writes it to a sub-process, and asynchronously reads data from the subprocess and writes to a socket. My program needs to replace the subprocess with a serial port. The telnet server cannot anticipate when data will arrive from the socket. ... |
Hey folks, My first post here, so be gentle I seem to have run into a quite a problem with the MS telnet server. I'm writing an application that will connect to a remote machine and execute a few scripts there. I'm using jakarta net for the connection. It all seems to work fine, but when I do connect to the ... |
|
|
|
ssh is one solution. The other is to tunnel your telnet connection thru an ssl server port on the remote system. This way the connection from you to the server is protected using SSL and the data is then forwarded from the server to the local port running telnet. You will of course need to configure this on your server so ... |
Hi all, So I'm taking this course about the Internet, and I'm suppose to telnet into a web server, type in a one line request message for some object on the server to see a HTTP response message. First off this book assumes I know how to telnet into a web server, wrong! Can anyone explain in simple language what I ... |
|
Try typing a few thousand more words per minute . Seriously, that's non-blocking IO doing its job. Even if your telnet client only sent data after each return, there's no promise from NIO that the stream won't be readable until you get a return. You have to analyze the data stream and the end of the line yourself. I can point ... |
i am using solaris machine. i just try to ping a server process from my machine. ping serverip it shows 'serverip is alive'. when i tried to telnet the serer process with the port which is used for https communication. telnet serverip 2018 then it shows like this, Trying 172.18.1.12... Connected to 172.18.1.12. Escape character is '^]'. Connection to 172.18.1.12 closed ... |
I am using apache commons.net api for telnet to communicate with a switch. Now I want to run telnet commands through programatically. for example, my telnet commands are all in one text(properties) file including username and password. Without typing any commands in a console i want to execute the commands which are in text(properties) file. Is it possible or not. can ... |
import java.io.IOException; import java.net.SocketException; import org.apache.commons.net.telnet.TelnetClient; import java.io.InputStream; import java.io.PrintStream; class NewClass { private static InputStream in; private static PrintStream out; public static void main(String[] args) throws SocketException, IOException { TelnetClient telnet = new TelnetClient(); telnet.connect("localhost", 7661); in = telnet.getInputStream(); out = new PrintStream(telnet.getOutputStream()); telnet.setSoTimeout(5000); //some code where telnet session may time out } } |
|