SSGNet Forums: ipconfig java applet - SSGNet Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ipconfig java applet

#1 User is offline   Testtube 

  • Level 5
  • Group: SSGN VIP
  • Posts: 267
  • Joined: Dec 12, 2003

Posted 15 July 2010 - 06:02 AM

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
Posted Image
Posted Image

#2 User is offline   Dr Brain 

  • Level 7
  • Group: Administrators
  • Posts: 2,878
  • Joined: Aug 14, 2003
  • Zone:Hyperspace

Posted 15 July 2010 - 07:14 AM

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?
Freedom is the right to be wrong.

#3 User is offline   Maverick 

  • Level 8
  • Group: SSGN VIP
  • Posts: 3,389
  • Joined: Nov 02, 2003

Posted 15 July 2010 - 10:00 AM

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....net.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.html (Unfortunately without source code.)
Here is how you do it in java code: http://www.jguru.com...w.jsp?EID=15832

This post has been edited by Maverick: 15 July 2010 - 10:09 AM


Maverick
Retired SSCU Trench Wars Super Moderator
TWCore Coordinator Administrator
Subspace Statistics Administrator

Posted Image
Do you want such a userbar? Look here.

#4 User is offline   Dr Brain 

  • Level 7
  • Group: Administrators
  • Posts: 2,878
  • Joined: Aug 14, 2003
  • Zone:Hyperspace

Posted 15 July 2010 - 12:18 PM

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.
Freedom is the right to be wrong.

#5 User is offline   Testtube 

  • Level 5
  • Group: SSGN VIP
  • Posts: 267
  • Joined: Dec 12, 2003

Posted 16 July 2010 - 06:13 AM

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
Posted Image
Posted Image

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users