Package Information
Documentation
Network Basic Nodes for n8n
A comprehensive n8n node package that provides TCP and UDP network functionality with specialized client and server nodes.
π Languages: English | EspaΓ±ol
Included Nodes
1. Network Basic Client
Icon: π€ (fa:paper-plane)
Category: Output
Functionality: Send data via TCP or UDP protocols
Features:
- Supported protocols: TCP and UDP
- Timeout configuration: For connection and response
- Wait for response: Configurable option to receive server response
- Supported encodings: UTF-8, ASCII, Base64, Hex
- Keep connection open: For TCP (optional)
- Response states:
sent_no_wait
,response_received
,no_response
,connection_closed
2. Network Basic Server
Icon: π₯οΈ (fa:server)
Category: Trigger
Functionality: TCP and UDP servers that trigger workflows when receiving data
Features:
- Supported protocols: TCP Server and UDP Server
- Host configuration: Default 127.0.0.1 (localhost)
- Maximum connections: Configurable for TCP
- Automatic response: Option to send response back to clients
- Supported encodings: UTF-8, ASCII, Base64, Hex
- Binary data: Includes both decoded data and binary data in base64
Installation
- Clone or download this repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Link the package globally:
npm link
- In your n8n installation, install the package:
Or if you linked it globally:npm install n8n-nodes-network-basic-nodes
npm link n8n-nodes-network-basic-nodes
Usage
Network Basic Client
- Drag the "Network Basic Client" node to your workflow
- Configure the protocol (TCP or UDP)
- Set the target host and port
- Write the message to send
- Configure advanced options as needed
Output example:
{
"success": true,
"protocol": "tcp",
"host": "127.0.0.1",
"port": 8080,
"message": "Hello Server!",
"encoding": "utf8",
"status": "response_received",
"response": {
"data": "Hello Client!",
"bytes": 13
},
"bytes": 13,
"timestamp": "2024-01-15T10:30:00.000Z"
}
Network Basic Server
- Drag the "Network Basic Server" node to your workflow
- Configure the protocol (TCP Server or UDP Server)
- Set the listening port
- Configure the host (127.0.0.1 for localhost, 0.0.0.0 for all interfaces)
- Configure response options if needed
Received data example:
{
"protocol": "tcp",
"server": {
"host": "127.0.0.1",
"port": 8080
},
"client": {
"remoteAddress": "127.0.0.1",
"remotePort": 54321,
"localAddress": "127.0.0.1",
"localPort": 8080
},
"data": "Hello Server!",
"encoding": "utf8",
"bytes": 13,
"timestamp": "2024-01-15T10:30:00.000Z",
"responseSent": false
}
Default Configurations
- Host: 127.0.0.1 (localhost)
- TCP Port: 8080
- UDP Port: 9090
- Encoding: UTF-8
- Wait for response: false
- Connection timeout: 5000ms
- Response timeout: 3000ms
- Response message: empty
Use Cases
TCP/UDP Client
- Send data to external services
- Communicate with IoT devices
- Integration with legacy systems
- Network service testing
TCP/UDP Server
- Receive custom webhooks
- Integration with devices that send data
- Create simple APIs
- Network monitoring
Development
To develop or modify these nodes:
# Install dependencies
npm install
# Compile in development mode (watch)
npm run dev
# Compile for production
npm run build
# Linting
npm run lint
# Code formatting
npm run format
Project Structure
nodes/
βββ NetworkBasic/
β βββ NetworkBasicClient.node.ts # Client node (sending)
β βββ NetworkBasicClient.node.json # Client metadata
β βββ NetworkBasicServer.node.ts # Server node (trigger)
β βββ NetworkBasicServer.node.json # Server metadata
βββ TCP/ # Specialized TCP nodes (legacy)
βββ UDP/ # Specialized UDP nodes (legacy)
βββ Triggers/ # Specialized triggers (legacy)
License
MIT
Contributing
=======
Network Basic Nodes for n8n
A comprehensive n8n node package that provides TCP and UDP network functionality with specialized client and server nodes.
π Languages: English | EspaΓ±ol
Included Nodes
1. Network Basic Client
Icon: π€ (fa:paper-plane)
Category: Output
Functionality: Send data via TCP or UDP protocols
Features:
- Supported protocols: TCP and UDP
- Timeout configuration: For connection and response
- Wait for response: Configurable option to receive server response
- Supported encodings: UTF-8, ASCII, Base64, Hex
- Keep connection open: For TCP (optional)
- Response states:
sent_no_wait
,response_received
,no_response
,connection_closed
2. Network Basic Server
Icon: π₯οΈ (fa:server)
Category: Trigger
Functionality: TCP and UDP servers that trigger workflows when receiving data
Features:
- Supported protocols: TCP Server and UDP Server
- Host configuration: Default 127.0.0.1 (localhost)
- Maximum connections: Configurable for TCP
- Automatic response: Option to send response back to clients
- Supported encodings: UTF-8, ASCII, Base64, Hex
- Binary data: Includes both decoded data and binary data in base64
Installation
- Clone or download this repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Link the package globally:
npm link
- In your n8n installation, install the package:
Or if you linked it globally:npm install n8n-nodes-network-basic-nodes
npm link n8n-nodes-network-basic-nodes
Usage
Network Basic Client
- Drag the "Network Basic Client" node to your workflow
- Configure the protocol (TCP or UDP)
- Set the target host and port
- Write the message to send
- Configure advanced options as needed
Output example:
{
"success": true,
"protocol": "tcp",
"host": "127.0.0.1",
"port": 8080,
"message": "Hello Server!",
"encoding": "utf8",
"status": "response_received",
"response": {
"data": "Hello Client!",
"bytes": 13
},
"bytes": 13,
"timestamp": "2024-01-15T10:30:00.000Z"
}
Network Basic Server
- Drag the "Network Basic Server" node to your workflow
- Configure the protocol (TCP Server or UDP Server)
- Set the listening port
- Configure the host (127.0.0.1 for localhost, 0.0.0.0 for all interfaces)
- Configure response options if needed
Received data example:
{
"protocol": "tcp",
"server": {
"host": "127.0.0.1",
"port": 8080
},
"client": {
"remoteAddress": "127.0.0.1",
"remotePort": 54321,
"localAddress": "127.0.0.1",
"localPort": 8080
},
"data": "Hello Server!",
"encoding": "utf8",
"bytes": 13,
"timestamp": "2024-01-15T10:30:00.000Z",
"responseSent": false
}
Default Configurations
- Host: 127.0.0.1 (localhost)
- TCP Port: 8080
- UDP Port: 9090
- Encoding: UTF-8
- Wait for response: false
- Connection timeout: 5000ms
- Response timeout: 3000ms
- Response message: empty
Use Cases
TCP/UDP Client
- Send data to external services
- Communicate with IoT devices
- Integration with legacy systems
- Network service testing
TCP/UDP Server
- Receive custom webhooks
- Integration with devices that send data
- Create simple APIs
- Network monitoring
Development
To develop or modify these nodes:
# Install dependencies
npm install
# Compile in development mode (watch)
npm run dev
# Compile for production
npm run build
# Linting
npm run lint
# Code formatting
npm run format
Project Structure
nodes/
βββ NetworkBasic/
β βββ NetworkBasicClient.node.ts # Client node (sending)
β βββ NetworkBasicClient.node.json # Client metadata
β βββ NetworkBasicServer.node.ts # Server node (trigger)
β βββ NetworkBasicServer.node.json # Server metadata
βββ TCP/ # Specialized TCP nodes (legacy)
βββ UDP/ # Specialized UDP nodes (legacy)
βββ Triggers/ # Specialized triggers (legacy)
License
MIT