CXUDPSRC Command - UDP Source Port
Configures the source port for UDP packet transmission.
What is it for?
| Use case | Description |
|---|---|
| 🔒 Firewall | Comply with rules requiring specific port |
| 🌐 NAT/Port Forwarding | Configure port forwarding on router |
| 🔀 Multiple devices | Differentiate devices on same network |
| 🛡️ Security | Use non-standard ports |
Description
Defines the local port number that Rinho uses as source when sending data via UDP. Useful for firewall and NAT configurations that require specific ports.
Commands
Configure
SCXUDPSRCaaaaQuery
QCXUDPSRCResponse
RCXUDPSRCaaaaParameters
| Parameter | Description | Range | Default |
|---|---|---|---|
| aaaa | UDP source port | 1024-65535 | 2000 |
Examples
Configure port 5000
>SCXUDPSRC5000<The device will use local port 5000 to send UDP packets.
Configure port 8080
>SCXUDPSRC8080<Restore default
>SCXUDPSRC2000<Use Cases
Firewall with specific rules
>SCXUDPSRC5000<Firewall only allows UDP traffic from port 5000.
NAT with Port Forwarding
>SCXUDPSRC3000<Router forwards responses to device’s port 3000.
Multiple devices on same network
Device 1: >SCXUDPSRC2000<
Device 2: >SCXUDPSRC2001<
Device 3: >SCXUDPSRC2002<Each device uses different port to avoid NAT conflicts.
Notes
- Change requires reconnection to take effect
- Port must be available (not used by another application)
- Recommended range: 1024-65535 (non-privileged ports)
Compatibility
💾Firmware v1.03.00
SPLegacy
ULLegacy
MTLegacy
💾Firmware v1.00.00
SP-IOT
SM-IOT
See Also
- CXIP Command - TCP/UDP Configuration
- IP Command - Server Configuration
- SKA Command - UDP Keep Alive
Last updated