UDP File sender and receiver using BROADCAST address
UDP File sender and receiver
Can use broadcast address to send file on all computers in LAN
Clone the source repository from Github.
On the command line, enter:
git clone https://github.com/gistrec/File-Broadcaster.git
git submodule init
git submodule update --recursive --remote
You can probably use Github for Windows or Github for Mac instead of the command line, however these aren't tested/supported and we only use the command line for development. Use this link to download the command line version.
make all
Parameter | Default | Description |
---|---|---|
p, port | 33333 | Sender and receiver port |
f, filename | none |
Transmitted and received file |
t, type | receiver | receiver or sender |
ttl | 15 | Seconds to wait cliend requests or sender responses |
mtu | 1500 | MTU packet size |
broadcast | 255.255.255.255 | Broadcast address. Can use to unicast. |
Packets structure
NEW_PACKET
packet to broadcast (or unicast) addressTRANSFER
packetRESEND
packet to broadcast (or unicast) addressRESEND
packets or wait TTL and turns off