multicast/broadcast support
This commit is contained in:
23
README.md
23
README.md
@ -74,16 +74,27 @@ The example demonstrates simple but practical commands like enabling/disabling o
|
||||
2. Tap the **"New Package"** button
|
||||
3. Enter:
|
||||
- Package name (for identification)
|
||||
- IP address (destination, e.g., 127.0.0.1 for localhost)
|
||||
- **Broadcast Mode** (toggle on to broadcast to all devices on network)
|
||||
- **IP addresses** (add one or more target IPs, not required for broadcast)
|
||||
- Data (the content to send)
|
||||
4. Tap **"Save"**
|
||||
|
||||
#### Broadcast Mode
|
||||
Enable broadcast mode to send UDP packets to all devices on your local network. This is useful for controlling multiple Unity instances simultaneously without specifying individual IP addresses.
|
||||
|
||||
#### Multiple IP Addresses
|
||||
Add multiple IP addresses to send the same packet to specific targets. The app will show you how many addresses received the packet successfully.
|
||||
|
||||
### Sending UDP Packages
|
||||
|
||||
1. Navigate to a project
|
||||
2. Find the package you want to send
|
||||
3. Tap the **"Send"** button
|
||||
4. The package will be sent to the configured IP address and port
|
||||
4. The package will be sent to:
|
||||
- All devices on the network (if broadcast mode is enabled)
|
||||
- Multiple specific IP addresses (if multiple IPs are configured)
|
||||
- A single IP address (standard mode)
|
||||
5. Check the feedback message to confirm successful delivery
|
||||
|
||||
### Managing Projects and Packages
|
||||
|
||||
@ -103,6 +114,14 @@ The example demonstrates simple but practical commands like enabling/disabling o
|
||||
|
||||
**Note:** For full UDP functionality, run the app on desktop (Windows/macOS/Linux) or mobile platforms. Web browsers do not support raw UDP sockets due to security restrictions.
|
||||
|
||||
### Broadcast Mode Requirements
|
||||
|
||||
To use broadcast mode effectively:
|
||||
- All target devices must be on the same local network (subnet)
|
||||
- Your firewall must allow outbound UDP broadcast traffic
|
||||
- Receiving applications must be listening on the specified port
|
||||
- Some routers may block broadcast packets - check your router settings if needed
|
||||
|
||||
## Architecture
|
||||
|
||||
The app follows a clean architecture pattern with:
|
||||
|
||||
Reference in New Issue
Block a user