Testtube Posted July 15, 2010 Report Posted July 15, 2010 Does anyone know how to make a java applet grab ipconfig data and maybe perform a telnet to a specific address? The goal is to direct people to a URL have the applet perform these tasks for the user and then dump the data to the server. Ive played around with it a bit and cant get there. Might be some money for anyone who can help Quote
Dr Brain Posted July 15, 2010 Report Posted July 15, 2010 It'll have to be a signed applet, since a normal applet cannot perform those tasks for security reasons. That just means you have to sign it yourself (like I did with chatnut). I know there's a way to disable the security for an applet for testing, but I forget exactly how it goes. Perhaps having the webpage on your local hard drive? A google search should reveal the answer. What else is giving you problems? Quote
»Maverick Posted July 15, 2010 Report Posted July 15, 2010 (edited) What is it exactly you want the applet to do? From what I've understood is that you want to have an applet that automatically connects to a specific server via telnet and dump the results of this attempt to (another?) server. Is that correct? At first I though you needed a signed applet aswell, like Dr. Brain said, but my Google Search has turned out otherwise. What you need is pretty much showed here (apart from the results dumping): http://javaboutique.internet.com/Telnet/ A ready-made library is available here: http://javassh.org/space/start As for the IPConfig stuff, here is an applet to get the (local) IP of the computer; http://www.reglos.de/myaddress/MyAddress.html (Unfortunately without source code.)Here is how you do it in java code: http://www.jguru.com/faq/view.jsp?EID=15832 Edited July 15, 2010 by Maverick Quote
Dr Brain Posted July 15, 2010 Report Posted July 15, 2010 You cannot connect to IP addresses *except* the one hosting the applet without a signed applet. This applies to all network connections. That's why chatnut has to be signed. If you want to run ipconfig itself, rather than just getting the LAN IP, then you'll still need the applet to be signed. So yes, If you only want to telnet to the web server and print the ip address, you don't need any special security settings. My understanding of the initial post was that this wouldn't be enough. Quote
Testtube Posted July 16, 2010 Author Report Posted July 16, 2010 A special thanks to Mav for the research. ( i did search and could not find this info) I really appreciate you going the extra mile here and posting your results. You helped me more than you know. Dr Brain Thanks go out to you as well. For helping me with my remaining questions You have always been a stand up guy and i appreciate that as well. You both are great assets to this community continue the great work you guys do thanks again -Ryan Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.