Telnet application.....

hi........
Iam developing an telnet application with authentication..
For this i have written a server & client classes.. When i execute the client program, it will ask for ip address of the machine to telnet..
I have designed the server program in such a way that when it is executed, it will ask for the port no. to listen to. (eg. any no. 1234)
when i give 1234 in the client part, it will connect. & the server will increment the value of no.of users connected as 1..
I dont in this way..... When the server is executed, it has to listen for the port no. 23 which is the default port for Telnet..... And if the client gives the ip address to connect, it will connect to the server.....
I dun know how to make it (server) to make it listen for the port automatically..
How can I do this????

You mean the server should listen to port 23 automatically?
It seems to be doing that... so I dont know what you mean by automatically?hiii.....
What i mean is, at present when i execute the server part, i have to manually fill the port no. & click the listen to port button to make it to listen the port for any connections coming from clients... I developed it in swings & used sockets for connections,....
Basically it was the ftp project done in swings used for downloading files..... did u get it???
Now i have to develop this telnet application..... For this, when i execute server, it should automatically listen for the port 23 for incoming connections....
did u get it????
How to make it....
P.S: In the previous FTP application, I give any no. (2345) or any such nos less than 65550 as the port no. for listening for connections...
In this i have to make the server to look for port 23 (telnet port) as default..
thanxs....
saravanan.

Similar Messages

  • Placing a telnet session within a java swing program

    I was wondering if there was a way to maybe anchor a telnet session into a JPanel within a Java Swing program. Most of my users end up running a telnet session while using my Swing Program and I was hoping to find a way to bring the two together. If this is possible could someone point me in the right direction (like an online resource) that might show me how to do this.

    You could use sockets and a TextArea and build your own simple telnet application.
    Socket tutorial: http://java.sun.com/docs/books/tutorial/networking/sockets/index.html

  • A telnet problem

    i create a telnet application.it have two jspx pages:index.jspx and about.jspx
    i test each page in cmd console ,all go right.
    A problem is i cann't navigate from index.jspx to about.jspx,or from about.jspx to index.jspx. i have no idea.
    my face-config.xml :
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <application>
    <view-handler>oracle.adf.view.faces.application.industrial.TelnetViewHandlerImpl</view-handler>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>
    <navigation-rule>
    <from-view-id>/index.jspx</from-view-id>
    <navigation-case>
    <from-outcome>about</from-outcome>
    <to-view-id>/about.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/about.jspx</from-view-id>
    <navigation-case>
    <from-outcome>home</from-outcome>
    <to-view-id>/index.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    any idea can help me

    yes,it's right.
    my web.xml:
    <?xml version = '1.0' encoding = 'GBK'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>

  • Telnet through Java and JSP

    Hi friends,
    Now, there is a certain server that one can telnet into using old conventional way, that is from a shell.
    However, I would like to do the same from form on a webpage which, on submitting, does the logging in, querying the command and returning the results back to me on a web page.
    I have googled about java and telnet and most if not all rsults link to a virtual console that is implemented in Java. Thats not what I exactly need. Neither do I need an applet but just web forms sumbitting into jsp pages.
    Anyone?

    Well you might have to think of writing your own virtual console.
    You can start with below set of libraries and try to implement them @the Server Side and define respective Sevices accordingly.
    http://commons.apache.org/net/
    Here are few example of how you make use of Commons Net Libraries and write Telnet Services
    http://www.java2s.com/Code/Java/Network-Protocol/ExampleofuseofTelnetClient.htm
    Also have telnet apps that you could look at their source code to get you going.
    The Java Telnet Application
    http://sourceforge.net/projects/jta
    Java Telnet Daemon
    http://freshmeat.net/projects/telnetd
    Hope that might help :)
    REGARDS,
    RaHuL

  • ADF Telnet with JDev 10.1.3.5

    I've tried so may days but ended up with no answer even from googling about ADF Telnet. I saw that oracle has a hidden treasure and that is Oracle ITS (Industrial telnet Server). I tried to find some samples, but it seems that no one using it and I only found only sample that doesn't work. I made a simple ADF Telnet application with JDev but it always show this warning:
    Dec 10, 2009 11:00:57 AM oracle.wireless.device.capability.CapabilitiesDocument getCapabilities
    WARNING: No match found, checking for default attributes
    Every action (ex: Commit Button, Command Link, etc) inside my ADF Telnet application won't work and only shows that kind of error. But if I access it with web browser, it just runs very well.
    Please help me on this issue......

    Well, the bad news is that the problem persists in version 10.1.3.5.
    Therefore, you will need to download JDev 10.1.3.1. It should have its own JDev home.
    Create your app and its first jspx pages in version 10.1.3.1. Just create the application and project and add Web Tier - JSF component using "JSF Page Flow & Configuration (faces-config.xml)".
    Under "Web Content-> WEB-INF" click on "faces-config.xml";. From the Component Palettte, choose "JSF NavigationDiagram" from the drop down. Then, drag "JSF Page" to the faces-config.xml window. Double click on the default page, give it a name (e.g. Page1.jsp) and make sure you choose JSPX (name will change to Page1.jspx), Mobile Device and Category of telnet. You can then simply finish. Repeat the same thing for a second page (e.g. Page2). Next, click on "JSF Navigation Case" from the Component Palette and click once on Page 1 and again on Page 2. Accept the defaults. Do the same from Page 2 to Page1.
    Now, open Page 1 from the Application Navigator. In the structure window (lower left), right click on the "af:form" and choose "insert inside of af:form" and choose PanelPage. Right click on PanelPage and choose "insert inside of PanelPage" -> ADF Faces Core -> CommandLink. Click on the Command Link within the JSPX window. In the Command Link Properties window, under "Action", pick the option there (it should read "success" if you took the default. Do the same thing for Page2.
    Now, right click on the Page1.jspx icon in the Applications Navigator and pick "Run". Your applicaiton will compile and run. Choose a device. Your command link 1 should navigate to the next page without getting the device capabilities errors you were getting before.
    Now that you have done this, close the app and JDev, and move the directory for this application under JDev 10.3.1.5. You can now open JDev 10.1.3.5 and open your app under 10.1.3.5's directory. It will ask if you want to migrate, answer Yes. Now, run the application again and it will work in 10.1.3.5.
    I know this is a hassle, but those of us who do this all the time are use to this inconvenience. Afterwards, you can build highly complex applications within 10.1.3.5 without getting this initial error again. In fact, I left my simple application under the 10.1.3.1 directory and I simply copy it under the 10.1.3.5 directory and rename the application whenever I start a new application.
    Let me know if this works.
    Rob

  • SA520 seems to terminate Telnet session

    Question: We recently replaced a router with Cisco SA520. The connection is only used for a Telnet application. After replacing the router we experience the problem that the Telnet session is terminated after around one minute of inactivity in a way that it does not respond to keyboard input anymore. With out old router this happend after 30 minutes.
    Everythink works fine as long as the user does actively use the system.
    The SA520 is configured with a static external and internal IP address. Two ports are forwarded (515,9100) from the external side (where the Telnet server resides) to an internal printer.
    Does anyone have idea what is causing this problem.
    Thank you
    Sascha

    Your timeout is probabally set very low.
    TRY THIS:
    Router(config)#line vty 0 4
    Router(config-line)#exec-timeout 30
    If you still have a problem please let us know.
    NOTE:
    I did the timeout for 30 minutes because that it what your old setting was.

  • Reinstalling telnet on Leopard

    Hello folks,
    Some time ago I posted the following question:
    http://discussions.apple.com/message.jspa?messageID=7585545#7585545
    To this day I have yet to resolve why telnet no longer works on my Leopard Macbook. so I decided to try and figure out how to re-install the telnet application itself with the hope that this would resolve my issue.
    Sadly after lots of Googling and searching the Apple Support Forums I find myself stuck again.
    Sorry for the basic nature of this question. Any advice and or guidance would be greatly appreciated.
    Regards,
    John

    Hi
    I'm slightly confused by your problem? You say it no longer works? Did it ever work? If it did what did you do or what happened to break it? Does the localhost require kerberos pre-authentication first? What happens if you simply type telnet? Do you enter interactive mode?
    You may be better off posting here:
    Post here:
    http://discussions.apple.com/forum.jspa?forumID=735
    Most of the Unix guys are there and should be able to help you?
    Tony

  • Proxy telnet commands

    hi,
    i have a telnet application which works fine.. i have written a swing class as telnet server & telnetclient. When the client establishes a connection with server, the server will ask for authentication. if the client is authenticated the telnet app is executed to the client.. This works fine in my case.
    What i want to do is, watever command the client executes in telnet i need to relay those commands thru the server. The command should pass thru the server which i have written...
    Any idea on how to go with this/??
    Thanxz in advance
    Saravanan

    By this do you mean that your server is acting as a proxy and you want it to pass all telnet data through to a real telnet server after authenticating the user? By telnet commands do you mean user data or the IAC commnds that are described in RFC 854? What telnet protocol implementation are you using, your own, apache, or some other?

  • MS-CHAP and telnet

    If I create VPDN users and let them use MS-CHAP to authenticate, can they run a telnet application? I tried it with a test user account, and I could not run the app. Actually, I could not even ping the box (access-list did increment though). Is there something Im forgetting using MS-CHAP to create pptp tunnels?
    Thanks

    This is the error i'm getting:
    "internet connect
    could not negotiate a connection with the remote ppp server.
    please verify your settings and try again."
    Thnak you,
    Rui.

  • Socket, telnet, FORTE

    Can FORTE open socket connections and send data over the socket connection?
    Has anyone written a telnet application using FORTE and if so could you
    provide pointers or examples to get me started?
    Thank you.
    Andrea.
    Reserve your name now at http://www.email.com

    Andrea,
    We have built a component that sends& receives data over a socket connection
    (TCP/IP).
    We used the ExternalConnection class for that. We took the Forte-example
    application that uses the ExternalConnection as a base.
    My colleague (see CC) implemented the Telnet-handshaking. He can tell you
    more about this.
    There's a lot of 'under water negotiation' necessary with the other side to
    setup a Telnet session.
    Good luck,
    Bart de Koning
    CreXX Green BV
    % Phone: 06 - 21288081 (mobiel) 281 (verkort)
    020 - 8734479 (Fax- & Voice email)
    (015) 219 28 28 (THE VISION WEB)
    ) E-Mail: Bart.de.Koningcrexx.nl
    -----Original Message-----
    From: andrea harper [SMTP:andreaharperemail.com]
    Sent: Tuesday, March 07, 2000 8:55 PM
    To: Forte-Users
    Subject: (forte-users) Socket, telnet, FORTE
    Can FORTE open socket connections and send data over the socket
    connection?
    Has anyone written a telnet application using FORTE and if so could you
    provide pointers or examples to get me started?
    Thank you.
    Andrea.
    Reserve your name now at http://www.email.com
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Is there Java Telnet Package?

    Hi,
    I'd like to build a telnet application (server) in pure java. Say, a client can setup a session with host using telnet, where the server at host is purely written in Java. My question: is there any package in Java implement all the necessary telnet framework already? or elsewhere ? Or I have to build one using socket myself? Any other information on this issue is appreicated too.
    Thanks?

    I've a similar problem. I've a main Java application on a Windows PC. From this main application, I wish to start another Java application/class on another Windows PC. Was thought that telnet's the way to do it. But I don't how. Is there any package in Java that can help me with it?

  • Enter Key is not being accepted properly in the Applet

    We have developed a Telnet application which is in form of an Applet. We are facing some problems with respect to that.
    We are using Java 1.2.
    When login sessions are launched, the login prompt is displayed.
    After we enter the user id and press the "Enter" Key, the UI remains at the "user id" prompt and is not accepting the "Enter" Key.
    As a result, we are not getting the password prompt and hence NE UI is not deing displayed.
    This was verified with logs and found that the "Enter" key was interpreted as "char 7" instead of Ascii char 10(Enter Key).
    This problem was observed in both IE and Netscape.
    But this same code works fine when it is run as a Java application. Also the same applet works fine when viewed from the Applet Viewer.
    Iam of the view that the issue may be due to the restrictions imposed by the browsers on the Java Applet.
    Please give me suggestions to circumvent this problem ,if u have faced the same.
    Thanks in advance,
    Darshan

    The reason why ENTER doesn't work is because it's reserved for the default button. The SPACEBAR does what you want.
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/doc-files/Key-Metal.html#JButton
    To change the key mappings, read up on JComponent.getActionMap(), JComponent.setActionMap() and the ActionMap class.

  • Invalid pc in line number table

    Hi,
    I try to decompile and recompile the class file and copy it back to the server getting the following error. I am using the latest Jdeveloper with OA , The ARU number is 5455514. I tried with few other classes, it works fine. Getting error for only one class (i.e. RcptTrxFListener). It's a telnet application for mobile devices.
    Can anyone help?
    Thanks
    Lalit
    [Wed Oct 11 05:39:59 CDT 2006] (Thread-10) SM_EXCEPTION: Exception occurred with user LALIT MISHRA
    java.lang.ClassFormatError: oracle/apps/inv/invtxn/server/RcptTrxFListener (Invalid pc in line number table)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
         at oracle.apps.inv.invtxn.server.RcptTrxPage.<init>(RcptTrxPage.java:552)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at oracle.apps.mwa.container.StateMachine.loadPage(StateMachine.java:1329)
         at oracle.apps.mwa.container.StateMachine.loadMenuItem(StateMachine.java:1541)
         at oracle.apps.mwa.container.StateMachine.handleEvent(StateMachine.java:926)
         at oracle.apps.mwa.presentation.telnet.PresentationManager.handle(PresentationManager.java:690)
         at oracle.apps.mwa.presentation.telnet.ProtocolHandler.run(ProtocolHandler.java:818)

    Hi,
    Have you solved this error? I'm encountering the same error. Please reply ASAP.
    OAF gurus, this is the error i'm getting..
    ## Detail 0 ##
    JBO-30003: The application pool (dev4.devorg.orgDVI21540devorg.oracle.apps.po.createpo.server.CreatePosAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ClassFormatError, msg=devorg/oracle/apps/po/createpo/server/CreatePosAMImpl (Invalid pc in line number table)
    Thanks in advance.

  • I need to log into a remote Linux system using LabVIEW.

    I can get in using the FTP protocal to get my data, but I need to execuite a shell command to start data processing. I have tryed Telnet but it wants to be interactive and I jest cant seem to mane it work Has anyone done this. (please note that this process will be done about 300 times during the process and I would like to automate it.
    Thank you
    James Zumstein
    [email protected]

    Hi James,
    Some ideas:
    1. Internet Toolkit from NI - as far as I remember, Telnet is included
    2. Using TCP functions (and some documentation about Telnet protocol) you can implement it.
    3. Use a Telnet application and try to send "commands" to it (there are available some VIs to communicate with other apps this way, especially for windows)
    4. Try to implement a little server application (on your remote machine, capable of triggering those processes) and connect to it using TCP. You can find an example in Labview.
    If one of these sounds interesting, I'll be happy to give you details.

  • Applet access to system Clipboard

    Hi all:
    I am creating a customized version of the mud telnet application for a customer. They have requested cut/paste functionality and I have been able to provide this capability. The problem is the applet cannot get access to the system clipboard so all cut/paste functions can only occur within the applet. I am able to access the system clipboard by creating a java.policy file and setting a permission. The problem is that most of the workstations, and a good number that will be using home computers running Win 98. They don't want the users to have to download the new JRE from Sun (although I know this works). I am looking for a way to creat a JAR file using the old JDK 1.1 (or the current toolkit if it is possible) that will allow access from the Applet to the System Clipboard. I have search the web for an answer, with no success. Can anyone give me any suggestions?
    Anybody had to do the same thing before?
    Thanks.
    John Kreiner

    I know this is an old thread, but I thought I would answer it.
    To access the clipboard via an applet, you need to use JavaScript.
    The first thing to do is to create a class that uses reflection to use the JSObject. The reason why reflection is used is because it is a pain (ITA) to specify a compatible binary for eacy java version (e.g. java40.jar, plugin.jar, jaws.jar, etc). Here is the class:
    import java.lang.reflect.*;
    import java.applet.Applet;
    public class JavaScript {
         public static void call(Applet applet, String methodName, Object[] param) {
              try {
                   Class js = Class.forName("netscape.javascript.JSObject");
                   Method callMethod = js.getMethod("call", new Class[] { String.class, Object[].class });
                   callMethod.invoke(getWindow(applet), new Object[] { methodName, param});
              } catch (Throwable t) {}
         public static Object getWindow(Applet applet) {
              Object o = null;
              try {
                   Class js = Class.forName("netscape.javascript.JSObject");
                   Method getWindowMethod = js.getMethod("getWindow", new Class[] { Applet.class });
                   o = getWindowMethod.invoke(null, new Object[] { applet });
              } catch (Throwable t) {}
              return o;
    }Now, when you want to copy something to the clipboard, you will do:
    JavaScript.call(someApplet, "copyToClipboard", text);
    BUT the "copyToClipboard" function has not been defined yet. This will be a JavaScript function in the html:
    <script language="JavaScript1.1">
    function copyToClipboard(text) {
         document.myForm.myInput.value = text;
         var rng = document.myForm.myInput.createTextRange();
         rng.execCommand("RemoveFormat");
         rng.execCommand("Copy");
    </script>And one last thing is that a JavaScript text component is required in order to create the "rng" variable. To do this, use a hidden field in the html:
    <form name="myForm">
         <input name="myInput" type="hidden">
         </input>
    </form>

Maybe you are looking for

  • Problems with FORM

    Hello, I have some login.jsp page in my webapp, but it does not work. login.jsp looks like this: <form method="POST" action="processLogon">      <input type="text" name="username"><br>      <input type="password" name="password"><br>      <input type

  • Missing menu in SAP GUI for HTML

    I have a user experience missing menu in SAP GUI for html every he/she accessed it through Portal but he/she did not experience it SAP GUI for windows. Please let me know if you have an idea how to activate or display the menu (such as menu, edit fav

  • Is it possible to set ID 5 as default app for INDD files?

    I am using Mac OS 10.6.8 (Snow Leopard), and I have upgraded to ID 5.5 for the 30-day trial. As I am not sure whether I want to keep it, I would like to keep ID 5 as the application associated with INDD files, as opposed to ID 5.5. Is this possible?

  • What happened to our ability to block people who a...

    What has happened to the button that allowed us to block scammers/spammers? I got a skype thing tonight and I want to block the one who tried to contact me, but that is no longer available on my skype. What is going on and why has that feature been d

  • OLAP: No more data to read from socket

    I created OLAP metadata with OEM (and with PL/SQL too), next I executed cwm2_olap_metadata_refresh.mr_refresh as olapsys. From query select * from dba_registry I saw that statuses for �OLAP Analytic Workspace� and �Oracle OLAP API� are UPGRADED and f