Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Java Network Programming - TCP/IP Socket Programming

Lập trình Mạng Java - Lập trình Socket TCP/IP

Lập trình Mạng Java - Lập trình Socket TCP/IP

Học cách viết các ứng dụng mạng mạnh mẽ.

4.4
(773 đánh giá)
6,070 học viên
Giảng viên
Catalin Baba
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 349.000đ -86%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
3.5 giờ video
50 bài giảng
4 bài quiz
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Hiểu các khái niệm cốt lõi về truyền thông mạng
Làm quen với kiến thức cơ bản về mạng: kiến trúc internet, địa chỉ IP, kết nối TCP, cổng.
Học cách tạo luồng (thread) Java và cách sử dụng Java IO
Học những điều cơ bản về lập trình socket Java: tạo và sử dụng socket;
Biết cách phát triển ứng dụng Client/Server TCP và UDP
Học cách truyền dữ liệu giữa các ứng dụng máy chủ/máy khách chạy trên các máy tính khác nhau trong mạng.
Lập trình các ứng dụng như: Máy quét cổng (Port Scanner), Duyệt Internet, Thu thập dữ liệu Web (Web Scraping), Lấy thuộc tính giao diện mạng, Xác thực Địa chỉ IP, Ping máy chủ từ xa
Phát triển các ứng dụng mạng phức tạp hơn: Ứng dụng Chuyển tệp, Máy chủ Web nhỏ, Gửi Email

Yêu cầu

Một máy tính - Windows, Mac hoặc Linux
Java Development Kit 7 hoặc Java Development Kit 8
Netbeans, Eclipse hoặc bất kỳ IDE nào khác
Kiến thức Java cơ bản
Kỹ năng máy tính và Internet cơ bản

Đối tượng phù hợp

Khóa học dành cho bất kỳ ai muốn học lập trình mạng
Nếu bạn chưa từng viết mã, khóa học này có lẽ không dành cho bạn.

Nội dung khóa học

9 phần • 50 bài giảng
1 Giới thiệu
2 Nguyên lý cơ bản về Mạng
3 Mô hình TCP/IP
4 Giao tiếp TCP/IP
5 Giao thức Internet (IP)
6 Giao diện Loopback
1 Giới thiệu về Thread
2 Mạng và Luồng (Threads)
3 Triển khai Luồng (Threads) trong Java
4 Tạo luồng đầu tiên
5 Chạy nhiều luồng đồng thời
6 Tạm dừng một luồng (Sleep)
7 Runnable
1 Giới thiệu Java I/O
2 FileInputStream
3 FileOutputStream
4 DataStream
5 Luồng ký tự (Character Streams) phần I
6 Luồng ký tự (Character Streams) phần II
7 Luồng ký tự (Character Streams) phần III
8 BufferedStream
9 PrintStream
10 System.in
1 Giới thiệu Lập trình Socket Java
2 Máy quét cổng nội bộ (Local Port Scanner)
3 Máy chủ TCP
4 Máy chủ đa người dùng (Multi-user)
5 Máy chủ đa luồng (Multithreaded)
6 Lớp InetAddress
7 Máy khách TCP (Client)
8 Máy quét cổng từ xa (Remote Port Scanner)
9 Ping
10 Xác thực địa chỉ IP
11 Lớp NetworkInterface
12 URL và Thu thập dữ liệu Web (Web Scraping)
1 Giới thiệu UDP
2 Máy khách UDP (Client)
3 Máy chủ UDP (Server)
4 Thời gian chờ UDP (Timeout)
1 Giao thức SMTP
2 Ứng dụng
3 Cài đặt máy chủ SMTP
4 Chạy Ứng dụng
1 Chúng ta sẽ xây dựng gì?
2 Ứng dụng - Phía Máy chủ
3 Ứng dụng - Phía Máy khách
4 Chạy Ứng dụng
1 Tổng quan về HTTP
2 Ứng dụng
1 Mã nguồn Ứng dụng Trò chuyện GUI

Giới thiệu khóa học

Update April 17, 2017: Two students asked me for subtitles. I removed the auto-generated subtitles and I added right subtitles for every lesson. Also, sound quality has been improved for some lessons. Thanks for your suggestion! Now, every student can follow this course more easily.

Update September 17, 2016: Some of my students asked me for a chat application. So
I created the application (GUI included) and I added it in chapter 9. 
Now, you can download the application, run it and view the source code. Enjoy!

Update August 4, 2016: Added: quizzes for learning reinforcement.

---------------------------------------------------------------

Student Testimonials!

★★★★★

The best course ever on udemy , it teaches student not only the how to build network application but also discuss all programming topics like streams , thread that involved on building network applications ,the teacher explains while he is coding every step in details , and explain why he prefered this method over that method . Mr. Catalin provides detail answers for any question in quick time . Take this course and you will master building network applications

Rashed

★★★★★

Professional and up to the point. It tells the beginners every single step about Java Network Programming which is very nice. It makes the difficult things look easy.

Sobhan N.

★★★★★

Excelente curso, esta muy bien explicado y la sintaxys del codigo es muy clara, solo me gustaria ver streaming de audio en tiempo real.

Juan


Course Description

With over 45 videos this online Java training course is designed to provide a solid foundation in Java network programming and network communication.

---------------------------------------------------------------

Learn something new

Network programming is one field which everybody uses but is still considered an advanced topic.

---------------------------------------------------------------

Open Source Code

All source code shown in this course is also available for download. Students can create their own projects using the downloaded java files.

---------------------------------------------------------------

Combine theory with practice!

Each chapter has an intro video to cover basic theory needed to understand the rest of the material covered.

In the first chapter you will learn the concept of network communication from the very basic fundamental level that needs to be understood by everyone.

Two other chapters are included in this course for those programmer who haven’t worked yet with java threads or java IO. These two are very important topics when you want to build a network application and I want to ensure that all students have the basics before we start to code Client – Server applications.

In the Socket (Java Socket programming) section you will start to write simple TCP servers or TCP clients. Also, you will learn how to create a multi-user or a multithreaded server and we are going to test each written application. We will connect multiple TCP clients to a multithreaded server and we will observe the TCP server behavior and how it makes to respond to multiple clients at the same time. 

In this chapter I will cover some other important network programming topics:

  • Scan a remote host for open ports

  • Get network interface hardware information

  • Validate an IP address in different ways

  • Ping a remote host address using java code

  • Browse internet using java code.

  • Web scrapping – get what data you want from a web page

UDP chapter focus on the difference between the most used Transport Layer protocols: TCP and UDP. We will write together an UDP server and an UDP client. The interesting part of this chapter comes after we will run the code. The next chapters present some useful applications:

  • Send an email

  • Transfer files between a server and a client using TCP sockets

  • A small web browser.

The code is explained in details, line by line. All the needed theory is presented in the application intro and we will test each application after the source code is explained.


So let’s start the interesting journey now! 

Cheers, 

Catalin Baba



Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Java Programming
Hiển thị tất cả khoá học Network Programming
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊