943,981 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1451
  • Java RSS
Oct 28th, 2006
0

Telnet into Server

Expand Post »
Hi everyone,

Can somene please explain to me how to run a telnet command using Java.I mean how can I achieve the following in Java : telnet mailServer PORT (where mailServer and PORT will be supplied)...and subequently capture response from the server.


Thanks .
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
crestaldin is offline Offline
30 posts
since Mar 2005
Oct 28th, 2006
0

Re: Telnet into Server

Runtime.exec()
capturing the output and err streams and feeding the inputstream

or opening a socket connection and attempting the protocol yourself.

Read the API and tutorials for those, and search javaworld.com for a good document on the pitfalls of Runtime.exec
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Oct 28th, 2006
0

Re: Telnet into Server

Thanks a lot
Reputation Points: 10
Solved Threads: 0
Light Poster
crestaldin is offline Offline
30 posts
since Mar 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Array required, but java.lang.String and java.util.Vector found
Next Thread in Java Forum Timeline: Help Java novice





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC