Sharing Is Caring:

Programming Network Applications in Java

TCP and UDP sockets in Java

This course includes:

  • 2 hours of on-demand video
  • 1 article
  • 15 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of completion


(689 ratings)

126,733 students

Created by Cyber Quince

What you’ll learn

  • Programming basic network applications
  • Programming client-server applications
  • TCP Sockets in Java
  • UDP Sockets in Java
  • Running multiple clients at the same time (multithreading)


  • JDK (Java Development Kit) – you’ll learn how to install it in the first lesson
  • Eclipse (code is same for other IDEs) – you’ll learn how to install it in the first lesson
  • Basic Java knowledge would be nice, but not necessary
  • Basic understanding of computer networks (TCP/UDP)


If you have a great idea for an app that needs to communicate through a network, or you’re just beginning to learn Java, or you’re a network engineer looking to implement one of many network protocols, you’ve come to the right place!

In this course, you’ll get the tools to build both client-server and peer-to-peer applications. We’ll cover both the use of TCP and UDP sockets, and I’ll leave it to you to choose which one suits your application better. There are some bonus examples that you can use to practice, and you’re more than welcome to post your questions, ideas or struggles in the Q&A section.

All of the code is thoroughly explained, so you don’t need much prior Java knowledge, but basic understanding of programming, in general, is a plus.

Read Also -->   The complete NestJS developer. Enterprise Node.js framework

Who this course is for:

  • Network engineers
  • Java beginners

Show less

Course content

4 sections • 15 lectures • 2h 8m total lengthCollapse all sections

Introduction3 lectures • 10min

  • IntroductionPreview00:43
  • Installing Eclipse and JDK04:03
  • Running Eclipse for the first time04:51

TCP Socket in Java5 lectures • 58min

  • Simple TCP Program (Server)Preview11:58
  • Simple TCP Program (Client)09:17
  • Thorough Explanation of the Code for “Simple TCP Program”18:56
  • Advancing the Simple TCP Program13:47
  • Bonus: Wireshark Analysis03:33

Multithreading3 lectures • 29min

  • Simple TCP Program (with multiple threads)15:41
  • Advancing the Multithreaded TCP Program06:57
  • Bonus Examples06:16

UDP Socket in Java4 lectures • 32min

  • Simple UDP Program (Receiver)11:49
  • Simple UDP Program (Sender)06:21
  • Thorough Explanation of the Simple UDP Program + Adding a Loop13:31
  • Simple UDP Chat00:23


Cyber Quince

Network Security Expert & Pro Teacher

  • 4.5 Instructor Rating
  • 5,352 Reviews
  • 308,551 Students
  • 6 Courses

As a computer science teacher, I created several e-learning courses and my students loved them. I quickly realized that even the best students used these materials, as they preferred knowing that they’ll be able to review any lesson at any time (especially before exams ;)). This inspired me to create simple, straight-to-the-point courses even for advanced subjects.

I left my academic career for a job in Cyber Security, in a multi-national Telecom. Now I’d like to share my knowledge, so if there’s any security/network topic you need help with, let me know and I might be able to create a course

Join Us Join Us Join Us
Sharing Is Caring:

Leave a Comment

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO