Good question!
Wiimotes connects / transfers data via Bluetooth.
I quickly looked at the source of the java WiiFlashServer . It uses ServerSocket and seems to send binary data for firmware via the Socket class.
You can either adapt part of this code according to your needs, or create a Socket server in your chosen language and send data to flash sockets.
NTN, George
source share