Important alert: (current site time 7/15/2013 3:58:00 PM EDT)
 

winzip icon

Java Socket Programming - FTP,TELNET,HTTP SERVER, CHAT SERVER, UDP NEWS SERVER

Email
Submitted on: 1/4/2005 10:43:33 AM
By: Divyen Patel  
Level: Intermediate
User Rating: By 20 Users
Compatibility: Java (JDK 1.3), Java (JDK 1.4)
Views: 79226
(About the author)
 
     This networking program set consists of implementation of FTP, TELNET, HTTP SERVER, UDP NEWS SERVER, Multi client parallel chat server, Date server. Knowledge of socket programming, applet, AWT, thread, and IO streams is essential to understand these programs. All Program Tested in JDK 1.4, and Run Successfully. Do not forget to run server program before starting client program. Developed By: Divyen K Patel (divyen_patel@rediffmail.com) Ahmedabad, Gujarat, India
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
1/5/2005 4:43:41 AM

Good effort,
I dont know about the other servers which you have developed. The FTP Server is cool but it is not functioning exactly how it is supposed to (opening two ports where execution commands will taken from from one port and processing will be done from other port. Try to achieve that functionality and your FTP server is done.

And regarding telnet server I dont know why you are executing that .bat file rather you can exaclyt take the user commands and execute them using runtime env.
(If this comment was disrespectful, please report it.)

 
1/5/2005 12:33:09 PMDivyen k Patel

to Run a Command like DIR, for listing Directory list in Telnet Client, one need to have Batch file on Server, because there is not exe file available for internal commands, and so you can not run exe from server using it's path.

In FTP Client user is asked to enter choice, he/she can send the file, receive the file and disconnect from FTP server. Once user enters the choice, file name is sent on server and content is transferred through DataOutputStream.
(If this comment was disrespectful, please report it.)

 
1/12/2005 6:44:19 AM

Good work I have to give you some rating for that.

Do you have anything in java which captures screen of client system and send to server

(If this comment was disrespectful, please report it.)

 
6/20/2005 12:51:32 AM

Hey Divyen...cool work man...One small question
How secure is this ftp client / server pair....What functionality can I add to it for making the transaction secure
(If this comment was disrespectful, please report it.)

 
6/18/2008 3:30:52 PMNetus

good job :P
(If this comment was disrespectful, please report it.)

 
3/27/2010 8:41:44 AMamira

that is goode
thank u
(If this comment was disrespectful, please report it.)

 
4/29/2010 7:16:44 PMAdeel109

Very useful code... Good Work
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.