A complete collection of networking projects built using Node.js core modules like:
dgramnethttphttps
This repository helps beginners understand:
- UDP Communication
- TCP Communication
- HTTP & HTTPS Servers
- File Transfer
- Request/Response Handling
- Networking Fundamentals
- UDP Server
- UDP Client
- Transferring Files Using UDP
- TCP Server
- TCP Client-Server Communication
- TCP Multi-Client Server
- TCP File Transfer
- Creating HTTP Server using Node.js
- HTTP Headers
- Important Response Headers
- HTTP Request Methods
- Creating HTTP Client
- Anatomy of HTTP Request & Response
- Creating HTTPS Server
- Controlling Data Transfer Speeds
- Inspecting TCP Data Transfer Speeds
NetworkNodeJs/
│
├── UDP/
│ ├── udp-server.js
│ ├── udp-client.js
│ └── udp-file-transfer.js
│
├── TCP/
│ ├── tcp-server.js
│ ├── tcp-client.js
│ ├── tcp-multi-client.js
│ └── tcp-file-transfer.js
│
├── HTTP/
│ ├── http-server.js
│ ├── http-client.js
│ └── headers.js
│
├── HTTPS/
│ └── https-server.js
│
├── package.json
└── README.md- Node.js installed
- VS Code (Recommended)
Check version:
node -vClone the repository:
git clone https://github.com/your-username/NetworkNodeJs.gitMove into the project folder:
cd NetworkNodeJsInstall dependencies:
npm installnode udp-server.jsnode udp-client.jsnode tcp-server.jsnode tcp-client.jsnode http-server.jsOpen browser:
http://localhost:3000node https-server.js- Socket Programming
- Networking Basics
- UDP vs TCP
- Client-Server Architecture
- HTTP Communication
- HTTPS Security
- Data Streaming
- File Transfer
- Headers & Methods
| Feature | UDP | TCP |
|---|---|---|
| Speed | Fast | Slower |
| Reliability | No | Yes |
| Connection | Connectionless | Connection-oriented |
| Use Case | Streaming, Games | Web, File Transfer |
Client ---> Server
Server ---> Response
Error:
EADDRINUSEFix:
- Change port number
- Stop existing server
Fix:
- Start server first
- Check IP address & port
- Real-time Chat App
- Video Streaming
- WebSocket Integration
- Authentication
- Encryption
- GUI Dashboard
B.Tech CSE Student
Networking & Backend Developer
If you found this repository helpful:
- Star the repository
- Fork the project
- Contribute improvements
This project is open-source and available for learning purposes.